-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (64 loc) · 1.44 KB
/
docker-compose.yml
File metadata and controls
69 lines (64 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
version: '3.8'
services:
synaptic:
build:
context: .
dockerfile: Dockerfile
target: production
container_name: synaptic
restart: unless-stopped
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- SYNAPTIC_HOST=0.0.0.0
- SYNAPTIC_PORT=3000
- SYNAPTIC_DB_TYPE=sqlite
- SYNAPTIC_DB_PATH=/app/data/synaptic.db
- REDIS_URL=redis://redis:6379
- SYNAPTIC_LOG_LEVEL=debug
volumes:
- synaptic_data:/app/data
- synaptic_logs:/app/logs
- synaptic_uploads:/app/uploads
- synaptic_backups:/app/backups
depends_on:
- redis
- postgres
networks:
- synaptic_network
redis:
image: redis:7-alpine
container_name: synaptic-redis
restart: unless-stopped
ports:
- "6379:6379"
command: redis-server --appendonly yes
volumes:
- redis_data:/data
networks:
- synaptic_network
postgres:
image: postgres:15-alpine
container_name: synaptic-postgres
restart: unless-stopped
ports:
- "5432:5432"
environment:
- POSTGRES_DB=synaptic
- POSTGRES_USER=synaptic
- POSTGRES_PASSWORD=synaptic_db_pass
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- synaptic_network
volumes:
synaptic_data:
synaptic_logs:
synaptic_uploads:
synaptic_backups:
redis_data:
postgres_data:
networks:
synaptic_network:
driver: bridge