-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (49 loc) · 1.02 KB
/
docker-compose.yml
File metadata and controls
56 lines (49 loc) · 1.02 KB
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
version: '3.8'
services:
gw_app:
container_name: gateway_app
build:
context: .
dockerfile: gateway.dockerfile
ports:
- "8080:8008"
# volumes:
# - ./messenger:/var/www/html
depends_on:
- auth_app
- msg_app
msg_app:
container_name: messenger_app
build:
context: .
dockerfile: msg.dockerfile
depends_on:
- auth_app
- msg_db
auth_app:
container_name: authenticator_app
build:
context: .
dockerfile: auth.dockerfile
depends_on:
- auth_db
auth_db:
image: mysql:8.0
container_name: authenticator_db
environment:
MYSQL_ROOT_PASSWORD: pass
MYSQL_DATABASE: authen
MYSQL_USER: auth_user
MYSQL_PASSWORD: secret
ports:
- "3308:3306"
msg_db:
image: mysql:8.0
container_name: messenger_db
environment:
MYSQL_ROOT_PASSWORD: pass
MYSQL_DATABASE: messages
MYSQL_USER: msg_user
MYSQL_PASSWORD: secret
ports:
- "3309:3306"