-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
66 lines (63 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
64
65
66
version: '3.1'
services:
teravoz-service:
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
- "4000:4000"
links:
- db
- redis
environment:
DB_ADDR: db
DB_USER: teravoz_user
DB_PASS: teravoz
DB_SCHEMA: teravoz
REDIS_ADDR: redis
depends_on:
- db
- redis
networks:
- app-network
redis:
image: redis
ports:
- '6379:6379'
networks:
- app-network
client:
build:
context: teravoz-challenge-client
dockerfile: Dockerfile
ports:
- "80:80"
links:
- teravoz-service
depends_on:
- teravoz-service
networks:
- app-network
db:
image: mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_DATABASE: 'teravoz'
MYSQL_USER: 'teravoz_user'
MYSQL_PASSWORD: 'teravoz'
MYSQL_ROOT_PASSWORD: 'teravoz'
networks:
- app-network
ports:
- '3306:3306'
expose:
- '3306'
volumes:
- my-db:/var/lib/mysql
volumes:
my-db:
networks:
app-network:
driver: bridge