-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.prod.yml
96 lines (88 loc) · 2.36 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
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
88
89
90
91
92
93
94
95
96
# $schema: https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json
services:
frontend:
image: "ghcr.io/sevenc-nanashi/chart_cyanvas/frontend:latest"
pull_policy: always
volumes:
- ./.env:/app/.env
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3100/"]
interval: 30s
timeout: 10s
retries: 3
backend:
image: "ghcr.io/sevenc-nanashi/chart_cyanvas/backend:latest"
pull_policy: always
volumes:
- ./.env:/app/.env
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/"]
interval: 30s
timeout: 10s
retries: 3
sub-audio:
image: "ghcr.io/sevenc-nanashi/chart_cyanvas/sub-audio:latest"
pull_policy: always
restart: always
volumes:
- ./.env:/app/.env
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3202/"]
interval: 30s
timeout: 10s
retries: 3
sub-image:
image: "ghcr.io/sevenc-nanashi/chart_cyanvas/sub-image:latest"
pull_policy: always
restart: always
volumes:
- ./.env:/app/.env
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3203/"]
interval: 30s
timeout: 10s
retries: 3
sub-chart:
image: "ghcr.io/sevenc-nanashi/chart_cyanvas/sub-chart:latest"
pull_policy: always
restart: always
volumes:
- ./.env:/app/.env
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3201/"]
interval: 30s
timeout: 10s
retries: 3
redis:
image: "redis:7.0.7-alpine"
restart: always
volumes:
- ./data/redis:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 10s
retries: 3
postgres:
image: "postgres:15.1-alpine"
restart: always
volumes:
- ./data/postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 30s
timeout: 10s
retries: 3
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DATABASE}
nginx:
image: "nginx:1.23.3-alpine"
restart: always
ports:
- "$FINAL_PORT:80"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
- ./backend/public:/app/backend-public
- ./backend/assets:/app/backend-assets