-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
51 lines (47 loc) · 1.12 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
version: "3"
services:
acordaosinterface:
container_name: acordaosinterface
build: ./App
# restart: always
environment:
- API=http://acordaosapi:7778/api
- AUTH=http://acordaosauth:7779/users
ports:
- "7777:7777"
depends_on: # cria um dependência entre serviços, significa que este serviço só inicia depois de iniciar o mongo
- acordaosapi
- acordaosauth
networks:
- acordaosnet
acordaosapi:
container_name: acordaosapi
build: ./API
# restart: always
environment:
- MONGODB_URL=mongodb://mongoserv/ACORDAOS
depends_on:
- mongoserv
networks:
- acordaosnet
acordaosauth:
container_name: acordaosauth
build: ./Auth
# restart: always
environment:
- MONGODB_URL=mongodb://mongoserv/ACORDAOS
depends_on:
- mongoserv
networks:
- acordaosnet
mongoserv:
container_name: dbacordaos
image: mongo # vai buscar a imagem oficial do mongo
networks:
- acordaosnet
volumes:
- './mongodata:/data/db'
networks:
acordaosnet:
name: acordaosnet
driver: bridge