-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
62 lines (57 loc) · 1.29 KB
/
docker-compose.prod.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
services:
client:
image: dolpheus89/prod_client_pawplanner
command: sh -c "npm ci && npm run build && npm run preview"
restart: unless-stopped
ports:
- 4201:4200
volumes:
- web-client-build:/client/dist
environment:
- WDS_SOCKET=127.0.0.1
- CHOKIDAR_USEPOLLING=true
- WATCHPACK_POLLING=true
env_file:
- .env
server:
image: dolpheus89/prod_server_pawplanner
restart: unless-stopped
depends_on:
- db
ports:
- 3201:3200
env_file:
- .env
db:
image: postgres:16
restart: unless-stopped
shm_size: 128mb
volumes:
- ./db_data:/var/lib/postgresql/data
ports:
- 5434:5432
container_name: pawplanner-db-1
environment:
- POSTGRES_USER=${DBUSERNAME}
- POSTGRES_PASSWORD=${DBPASS}
- POSTGRES_DB=${DBNAME}
adminer:
image: adminer
restart: unless-stopped
ports:
- 8081:8080
nginx:
image: nginx:1.21.3
depends_on:
- server
- client
restart: always
ports:
- ${GATEWAY_PORT:-8060}:82
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- web-client-build:/web-client-build
- ./logs:/var/log/nginx
volumes:
web-client-build:
db_data: