-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
107 lines (105 loc) · 2.1 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
version: "3.11"
services:
app:
image: muistot/testserver:latest
build:
context: .
dockerfile: Dockerfile
target: test-server
restart: unless-stopped
tty: true
volumes:
- "./images/:/opt/files/"
- "./src/muistot:/muistot/muistot:ro"
- "./config.json:/root/config.json:ro"
ports:
- "127.0.0.1:5600:80"
depends_on:
- db
- redis
- maildev
- namegen
- adminer
profiles:
- server
db:
image: mariadb:10.6
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: test
ports:
- "127.0.0.1:5601:3306"
volumes:
- "muistot-db-data:/var/lib/mysql"
- "./database/schemas:/docker-entrypoint-initdb.d:ro"
profiles:
- server
redis:
hostname: redis
image: redis:6-alpine
restart: unless-stopped
profiles:
- server
maildev:
image: muistot/maildev:latest
build:
context: ./mail
dockerfile: maildev.Dockerfile
restart: on-failure
ports:
- "127.0.0.1:5603:80"
profiles:
- server
adminer:
image: adminer
restart: on-failure
ports:
- "127.0.0.1:5602:8080"
profiles:
- server
namegen:
image: muistot/namegen-dev
build:
context: ./namegen
dockerfile: Dockerfile
target: server
ports:
- "127.0.0.1:5604:3306"
profiles:
- server
- test
testrunner:
image: muistot/testrunner:latest
build:
context: .
dockerfile: Dockerfile
target: test-runner
restart: "no"
tty: true
volumes:
- "./htmlcov/:/muistot/htmlcov/"
- "./config-test.json:/root/config.json:ro"
depends_on:
- test-db
- test-redis
- namegen
profiles:
- test
test-db:
image: mariadb:10.6
restart: "no"
environment:
MYSQL_ROOT_PASSWORD: test
volumes:
- "./database/schemas:/docker-entrypoint-initdb.d:ro"
profiles:
- test
test-redis:
hostname: redis
image: redis:6-alpine
restart: "no"
profiles:
- test
volumes:
muistot-db-data:
external: true