-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
87 lines (80 loc) · 1.92 KB
/
docker-compose.prod.yml
File metadata and controls
87 lines (80 loc) · 1.92 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
version: '3.4'
volumes:
next_node_modules:
services:
nginx:
image: nginx:latest
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- registration-api
- registration-ui
ports:
- 7800:7800
redis:
image: redis:latest
command: redis-server /usr/local/etc/redis/redis.conf
volumes:
- ./redis/redis.conf:/usr/local/etc/redis/redis.conf
expose:
- 6379
registration-api:
build:
context: registration-api
dockerfile: Dockerfile.prod
image: registration-api-prod
restart: 'on-failure'
volumes:
- ./registration-api/:/app
- ./app-cache/:/app-cache
expose:
- '7777-7778:7777'
depends_on:
- database
- flyway
- redis
env_file:
- project.env
deploy:
replicas: 2
restart_policy:
condition: on-failure
delay: '5s'
max_attempts: 5
window: '30s'
registration-ui:
build:
context: registration-ui
dockerfile: Dockerfile.prod
image: registration-ui-prod
restart: 'on-failure'
volumes:
- ./registration-ui/:/app
- next_node_modules:/app/node_modules
expose:
- 3000
depends_on:
- registration-api
deploy:
restart_policy:
condition: on-failure
delay: '5s'
max_attempts: 5
window: '30s'
database:
container_name: database-server-dab-p1-b5e4c02f-784a-4080-95e7-6797c506c3c9
image: postgres:14.1
restart: 'unless-stopped'
volumes:
- ./production-database-data:/var/lib/postgresql/data
env_file:
- project.env
flyway:
image: flyway/flyway:9.11.0-alpine
depends_on:
- database
volumes:
- ./flyway/sql/:/flyway/sql
command: -connectRetries=60 -baselineOnMigrate=true migrate
env_file:
- project.env