forked from LelabsTeam/mono-challenge-intention
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
66 lines (59 loc) · 1.37 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.9"
volumes:
db-data:
services:
service-products:
image: service-products
container_name: service-products
restart: unless-stopped
build:
context: ./service-product
dockerfile: ./docker/Dockerfile
volumes:
- ./service-product:/var/www
networks:
- lebiscuit-network
nginx:
image: nginx:alpine
restart: unless-stopped
ports:
- "8989:80"
volumes:
- ./service-product:/var/www
- ./service-product/docker/nginx:/etc/nginx/conf.d/
depends_on:
- service-products
networks:
- lebiscuit-network
service-intention:
image: service-intention
entrypoint: ./.docker/entrypoint.sh
container_name: service-intention
restart: unless-stopped
build:
context: ./service-intention
dockerfile: ./Dockerfile
volumes:
- ./service-intention:/home/node/app
ports:
- "3000:3000"
- "5555:5555"
depends_on:
- db-intention
networks:
- lebiscuit-network
db-intention:
image: postgres:15.3-alpine
container_name: db-intention
restart: unless-stopped
environment:
POSTGRES_USER: lebiscuit
POSTGRES_PASSWORD: desafio123
POSTGRES_DB: buy_intention
volumes:
- db-data:/var/lib/postgresql/data
networks:
- lebiscuit-network
networks:
lebiscuit-network:
driver: bridge