-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (57 loc) · 1.16 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
version: "3.8"
services:
database:
container_name: database
image: 'mysql:5.7'
environment:
MYSQL_ROOT_PASSWORD: mysql
command: --sql_mode="" --default-authentication-plugin=mysql_native_password
volumes:
- ./schema.sql:/docker-entrypoint-initdb.d/schema.sql
- db-data:/var/lib/mysql
restart: always
networks:
- back-tier
server:
container_name: server
build:
context: ./Server
environment:
PORT: 8080
DB_HOST: database
DB_PORT:
DB_USER: root
DB_PASSWORD: mysql
DB_DATABASE: area
ports:
- "8080:8080"
depends_on:
- database
restart: on-failure
networks:
- back-tier
client_mobile:
container_name: client_mobile
build:
context: ./MobileClient
volumes:
- "clients-data:/clients_shared"
client_web:
container_name: client_web
build:
context: ./WebClient
environment:
PORT: 8081
ports:
- "8081:8081"
depends_on:
- server
- client_mobile
volumes:
- "clients-data:/clients_shared"
networks:
back-tier:
driver: bridge
volumes:
db-data:
clients-data: