-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.preprod.yml
59 lines (54 loc) · 1.1 KB
/
docker-compose.preprod.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
services:
api:
depends_on:
- postgres
build:
context: "."
dockerfile: Dockerfile.api
env_file: .env
restart: unless-stopped
command: yarn start
update:
depends_on:
- api
- postgres
build:
context: "."
dockerfile: Dockerfile.api
env_file: .env
restart: always
# runs every 4 hours (240 minutes)
command: yarn update-then-wait 240
web:
depends_on:
- api
build:
context: "."
dockerfile: Dockerfile.web
restart: unless-stopped
nginx:
image: nginx:alpine
ports:
- "8090:80"
volumes:
- ./nginx/:/etc/nginx/conf.d/
depends_on:
- api
- web
restart: unless-stopped
postgres:
image: postgres:16
shm_size: 256m
environment:
POSTGRES_LOG_STATEMENTS: all
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- ./docker-data:/var/lib/postgresql/data
restart: unless-stopped
adminer:
image: adminer
ports:
- "8091:8080"
restart: unless-stopped