-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.dev.yml
57 lines (55 loc) · 1.08 KB
/
compose.dev.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
version: "3.6"
services:
mysql:
image: mysql:8
container_name: cndb
environment:
MYSQL_DATABASE: cn
MYSQL_ROOT_PASSWORD: "root"
ports:
- "127.0.0.1:3308:3306"
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
timeout: 20s
retries: 10
networks:
- cn_network
splash:
build:
context: ./scrape-it
dockerfile: Dockerfile
container_name: splash
ports:
- "127.0.0.1:8050:8050"
networks:
- cn_network
deploy:
resources:
limits:
memory: 200M
cnapi:
build:
context: .
dockerfile: Dockerfile.dev
container_name: cnapi
ports:
- "127.0.0.1:3500:8080"
depends_on:
mysql:
condition: service_healthy
splash:
condition: service_started
env_file: ./env.dev
networks:
- cn_network
develop:
watch:
- action: rebuild
files:
- ./**/*.go
- ./go.mod
- ./go.sum
networks:
cn_network:
name: cn_network
driver: bridge