-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
144 lines (132 loc) · 3.45 KB
/
docker-compose.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
volumes:
certbotdata:
serverdb:
services:
# # # # # # # # # # # # # # # # # # # # #
# # # # # # # # # # # # # # # # # # # # #
networkdb:
image: postgres:alpine
restart: unless-stopped
mem_limit: 2g
logging:
options:
max-size: '1m'
max-file: '1'
environment:
- POSTGRES_USER=networkdbuser
- POSTGRES_PASSWORD=networkdbpassword
healthcheck:
test: ["CMD-SHELL","pg_isready"]
interval: 10s
timeout: 30s
retries: 50
start_period: 10s
# # # # # # # # # # # # # # # # # # # #
# # # # # # # # # # # # # # # # # # # #
serverdb:
image: redis:alpine
restart: unless-stopped
mem_limit: 2g
logging:
options:
max-size: '1m'
max-file: '1'
volumes:
- serverdb:/data
environment:
- REDIS_ARGS=--save 5 1
# ports:
# - "6379:6379"
healthcheck:
test: ["CMD-SHELL","redis-cli ping | grep -q PONG || exit 1"]
interval: 10s
timeout: 30s
retries: 50
start_period: 10s
# # # # # # # # # # # # # # # # # # # # #
# # # # # # # # # # # # # # # # # # # # #
api:
image: ghcr.io/carrismetropolitana/api-server:beta
restart: unless-stopped
mem_limit: 2g
logging:
driver: none
environment:
- SERVERDB_HOST=serverdb
# - MONGODB_URI=mongodb://mongodbuser:mongodbpassword@localhost:27017/production?authSource=admin
# secrets:
# - realtimedbkey
depends_on:
serverdb:
condition: service_healthy
networkdb:
condition: service_healthy
# # # # # # # # # # # # # # # # # # # # #
# # # # # # # # # # # # # # # # # # # # #
parse-network:
image: ghcr.io/carrismetropolitana/api-parse-network:beta
restart: unless-stopped
mem_limit: 2g
logging:
options:
max-size: '1m'
max-file: '1'
environment:
- SERVERDB_HOST=serverdb
- NETWORKDB_HOST=networkdb
- NETWORKDB_USER=networkdbuser
- NETWORKDB_PASSWORD=networkdbpassword
# - SINGLE_RUN=true
- GTFS_URL=https://github.com/carrismetropolitana/gtfs/raw/live/CarrisMetropolitana.zip
# - GTFS_URL=https://storage.carrismetropolitana.pt/static/gtfs/GTFS_a4_ref_20240502.zip
depends_on:
- serverdb
- networkdb
# # # # # # # # # # # # # # # # # # # # #
# # # # # # # # # # # # # # # # # # # # #
pdf-renderer:
image: ghcr.io/carrismetropolitana/pdf-maker-renderer:production
restart: unless-stopped
mem_limit: 2g
logging:
options:
max-size: '1m'
max-file: '1'
environment:
- API_URL=http://api:5050
depends_on:
- api
healthcheck:
test: curl -f http://localhost:3000 || exit 1
interval: 5s
timeout: 30s
retries: 100000
start_period: 5s
queue:
image: ghcr.io/carrismetropolitana/pdf-maker-queue:production
restart: unless-stopped
mem_limit: 2g
logging:
options:
max-size: '1m'
max-file: '1'
environment:
- API_URL=http://api:5050
# ports:
# - "5052:5052"
pdf-printer:
image: ghcr.io/carrismetropolitana/pdf-maker-printer:production
restart: unless-stopped
mem_limit: 2g
logging:
options:
max-size: '1m'
max-file: '1'
volumes:
- ./static/pdf-test:/app/pdfs
environment:
- RENDER_URL=http://pdf-renderer:3000/schedule
- QUEUE_URL=http://queue:5052
depends_on:
queue:
condition: service_started