-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.prod.yml
50 lines (48 loc) · 986 Bytes
/
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
version: "3.6"
services:
mysql:
image: mysql:8
container_name: cndb
restart: unless-stopped
environment:
MYSQL_DATABASE: cn
MYSQL_ROOT_PASSWORD: "root"
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
timeout: 20s
retries: 10
networks:
- cn_network
splash:
build:
context: ./scrape-it
dockerfile: Dockerfile
container_name: splash
restart: unless-stopped
ports:
- "127.0.0.1:8050:8050"
networks:
- cn_network
deploy:
resources:
limits:
memory: 200M
cnapi:
build:
context: .
dockerfile: Dockerfile.prod
container_name: cnapi
restart: unless-stopped
ports:
- "127.0.0.1:3500:8080"
depends_on:
splash:
condition: service_started
mysql:
condition: service_healthy
networks:
- cn_network
networks:
cn_network:
name: cn_network
driver: bridge