-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
84 lines (74 loc) · 1.63 KB
/
docker-compose.yaml
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
version: '3.8'
services:
app:
build: ./api
container_name: app
networks:
- torrens
volumes:
- ./api/app:/opt/app
ports:
- "8080:8080"
environment:
- "PORT=8080"
- "DB_HOST=db"
- "DB_PORT=3306"
- "DB_USER=sep401"
- "DB_PASSWORD=sandfish carbon opal dripping untaxed"
- "DB_NAME=sep401"
- "SMTP_HOST=smtp"
- "SMTP_PORT=1025"
links:
- "db:db"
- "smtp:smtp"
daemon:
build: ./daemon
container_name: daemon
networks:
- torrens
volumes:
- ./daemon/app:/opt/app
environment:
- "DB_HOST=db"
- "DB_PORT=3306"
- "DB_USER=sep401"
- "DB_PASSWORD=sandfish carbon opal dripping untaxed"
- "DB_NAME=sep401"
- "CHROME_HEADLESS_URL=ws://chromium:9222/"
links:
- "db:db"
- "chromium:chromium"
db:
image: library/mysql:5.7
container_name: db
networks:
- torrens
ports:
- "3306:3306"
volumes:
- mysql57-data:/var/lib/mysql
- ./db.sql:/opt/db.sql
environment:
- "MYSQL_RANDOM_ROOT_PASSWORD=yes"
- "MYSQL_USER=sep401"
- "MYSQL_PASSWORD=sandfish carbon opal dripping untaxed"
- "MYSQL_DATABASE=sep401"
healthcheck:
test: mysql -u $$MYSQL_USER -p"$$MYSQL_PASSWORD" -e "SELECT 1;" || exit 1
chromium:
image: chromedp/headless-shell:116.0.5845.14
container_name: chromium
networks:
- torrens
smtp:
image: mailhog/mailhog:v1.0.0
container_name: stmp
networks:
- torrens
ports:
- "8025:8025"
volumes:
mysql57-data: {}
networks:
torrens:
external: true