-
Notifications
You must be signed in to change notification settings - Fork 36
/
docker-compose.yml
49 lines (47 loc) · 932 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
41
42
43
44
45
46
47
48
49
version: '3.5'
services:
net:
image: alpine:3.7
network_mode: bridge
ports:
- 2000:2000
command: tail -f /dev/null
restart: always
dev:
build:
context: .
target: dev
volumes:
- "$PWD:/data"
working_dir: /data
command: tail -f /dev/null
v350c:
build:
context: .
target: v350c
network_mode: service:net
depends_on:
- db
env_file:
- .env
command: /bin/bash -i ./wait-for-it.sh 127.0.0.1:3306 -- ./ServerStart.sh
v380c:
build:
context: .
target: v380c
network_mode: service:net
depends_on:
- db
env_file:
- .env
command: /bin/bash -i ./wait-for-it.sh 127.0.0.1:3306 -- ./ServerStart.sh
db:
image: mariadb:10
network_mode: service:net
volumes:
- db-data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: admin
volumes:
db-data: