-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
73 lines (70 loc) · 1.66 KB
/
docker-compose.yml
File metadata and controls
73 lines (70 loc) · 1.66 KB
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
name: sms-gate-app
services:
backend:
image: capcom6/sms-gateway
build:
context: ../..
dockerfile: ./build/package/Dockerfile
args:
- APP=sms-gateway
environment:
- DEBUG=
- CONFIG_PATH=config.yml
- HTTP__LISTEN=0.0.0.0:3000
- DATABASE__HOST=db
- DATABASE__PORT=3306
- DATABASE__USER=sms
- DATABASE__PASSWORD=sms
- DATABASE__DATABASE=sms
ports:
- "3000:3000"
volumes:
- ../../configs/config.yml:/app/config.yml:ro
restart: "unless-stopped"
depends_on:
db:
condition: service_healthy
worker:
image: capcom6/sms-gateway
build:
context: ../..
dockerfile: ./build/package/Dockerfile
args:
- APP=sms-gateway
command: ["/app/app", "worker"]
environment:
- DEBUG=
- CONFIG_PATH=config.yml
- HTTP__LISTEN=0.0.0.0:3000
- DATABASE__HOST=db
- DATABASE__PORT=3306
- DATABASE__USER=sms
- DATABASE__PASSWORD=sms
- DATABASE__DATABASE=sms
ports:
- "3001:3000"
volumes:
- ../../configs/config.yml:/app/config.yml:ro
restart: "unless-stopped"
depends_on:
db:
condition: service_healthy
db:
image: mariadb:lts
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=sms
- MYSQL_USER=sms
- MYSQL_PASSWORD=sms
- MARIADB_AUTO_UPGRADE=1
volumes:
- mariadb-data:/var/lib/mysql
restart: "unless-stopped"
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
start_period: 10s
interval: 10s
timeout: 5s
retries: 3
volumes:
mariadb-data: