forked from LelabsTeam/mono-challenge-intention
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 lines (53 loc) · 1.17 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
version: '3'
services:
api-product:
container_name: api-product
image: api-product
entrypoint: ./docker-php-entrypoint
build:
context: ./servico-de-produto
dockerfile: Dockerfile.product
volumes:
- ./servico-de-produto:/var/www/html
networks:
- mono-intention
nginx:
image: nginx:alpine
restart: unless-stopped
ports:
- "8000:80"
volumes:
- ./servico-de-produto:/var/www/html
- ./servico-de-produto/nginx:/etc/nginx/conf.d/
networks:
- mono-intention
api-intention:
container_name: api-intention
image: api-intention
build:
context: ./servico-de-intencao
dockerfile: Dockerfile.intention
depends_on:
- db
volumes:
- ./servico-de-intencao:/app/data
networks:
- mono-intention
command: npm run start:dev
db:
image: mysql:latest
restart: always
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: intencoes
MYSQL_PASSWORD: ''
volumes:
- ./data/mysql:/app
networks:
- mono-intention
volumes:
data:
driver: local
networks:
mono-intention:
driver: bridge