forked from ColectivaLegal/ScalaSmsAlertSystem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (40 loc) · 839 Bytes
/
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
version: "3.6"
services:
sms:
build:
context: .
command: [
"./target/universal/stage/bin/smsalertsystemv2",
"-Dplay.evolutions.db.default.autoApply=true",
"-Dplay.http.secret.key=l33t_52uc3",
"-Dslick.dbs.default.db.url=jdbc:mysql://mysql:3306/sms"
]
depends_on:
- db
environment:
TWILIO_USERNAME: username
TWILIO_PASSWORD: password
TWILIO_PHONE: '+10000000000'
links:
- db:mysql
networks:
- service_network
ports:
- "9000:9000"
db:
image: mariadb
restart: always
environment:
MYSQL_ROOT_PASSWORD: example
MYSQL_DATABASE: sms
networks:
service_network:
aliases:
- mysql
adminer:
image: adminer
restart: always
ports:
- 8080:8080
networks:
service_network: