-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
46 lines (42 loc) · 1.39 KB
/
docker-compose.yml
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
name: chess
services:
online-chess:
image: ghcr.io/manangandhi1810/chess-server
restart: unless-stopped
ports:
- 3000:3000/tcp
- 4000:4000/tcp
volumes:
- ./server/.env:/appuser/.env
# - /path/to/ssl/fullchain.pem:/usr/src/app/ssl/fullchain.pem
# - /path/to/ssl/privkey.pem:/usr/src/app/ssl/privkey.pem
command: sh -c "npx prisma migrate deploy && npm run start"
postgresql:
image: bitnami/postgresql:latest
restart: unless-stopped
ports:
- "5432:5432/tcp"
volumes:
- pg-data:/bitnami/postgresql
environment:
- POSTGRESQL_PGAUDIT_LOG=READ,WRITE
- POSTGRESQL_LOG_HOSTNAME=true
- POSTGRESQL_REPLICATION_MODE=master
- POSTGRESQL_REPLICATION_USER=repl_user
- POSTGRESQL_REPLICATION_PASSWORD=repl_user
- POSTGRESQL_USERNAME=postgres
- POSTGRESQL_PASSWORD=postgres
- POSTGRESQL_DATABASE=postgres
labels:
- "com.centurylinklabs.watchtower.enable=false"
redis:
image: bitnami/redis:latest
restart: unless-stopped
ports:
- "6379:6379/tcp"
environment:
- ALLOW_EMPTY_PASSWORD=yes
labels:
- "com.centurylinklabs.watchtower.enable=false"
volumes:
pg-data: