-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
59 lines (54 loc) · 1.12 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
version: "3"
services:
webservice:
build: webservice
depends_on:
- database
ports:
- 80:8088
links:
- database
environment:
MAIL_AUTH: $MAILAUTH
DATABASE_URL: database:3306
DATABASE_USER: $DBUSER
DATABASE_PASSWORD: $DBPW
DATABASE_DATABASE: $DATABASEDB
MAIL_SERVICE: mailservice:8085
TIME_ZONE: "Europe/Oslo"
restart: always
mailservice:
build: mailservice
depends_on:
- database
ports:
- 8085:8085
links:
- database
environment:
DATABASE_URL: database:3306
DATABASE_USER: $DBUSER
DATABASE_PASSWORD: $DBPW
DATABASE_DATABASE: $DATABASEDB
MAIL_AUTH: $MAILAUTH
MAIL_PROVIDER: $MAILPROVIDER
USERNAME: $MAILUSER
PASSWORD: $MAILPW
restart: always
adminer:
image: adminer
restart: always
ports:
- 8080:8080
links:
- database
database:
build: dbservice
restart: always
ports:
- 3306:3306
environment:
MYSQL_DATABASE: $DATABASEDB
MYSQL_ROOT_PASSWORD: $DBPW
volumes:
- ./dbservice/data:/var/lib/mysql