-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.dist.yaml
More file actions
70 lines (61 loc) · 1.43 KB
/
docker-compose.dist.yaml
File metadata and controls
70 lines (61 loc) · 1.43 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
70
version: "3.9"
services:
app-server:
build: .
ports:
- "12857:12857"
depends_on:
- production-db
environment:
PM2_PUBLIC_KEY: a public key for pm2 or disable
PM2_SECRET_KEY: a secret key for pm2 or disable
command: yarn serve
volumes:
- type: bind
source: ./logs
target: /root/ytdpnl/logs
production-db:
image: postgres:15
restart: always
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: a password for the database admin user
POSTGRES_DB: ytdpnl
ports:
- 54321:5432
volumes:
- production-ytdpnl:/var/lib/postgresql/data
development-db:
image: postgres:15
restart: always
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: another password for the development database admin user
POSTGRES_DB: ytdpnl
ports:
- 54322:5432
volumes:
- development-ytdpnl:/var/lib/postgresql/data
test-db:
image: postgres:15
restart: unless-stopped
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: another password for the test database admin user
POSTGRES_DB: ytdpnl
ports:
- 54323:5432
volumes:
- test-ytdpnl:/var/lib/postgresql/data
adminer:
image: adminer
restart: always
ports:
- "9180:8080"
volumes:
production-ytdpnl:
driver: local
development-ytdpnl:
driver: local
test-ytdpnl:
driver: local