-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
58 lines (54 loc) · 1.04 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
version: "3.3"
services:
pg:
image: postgres:11.5-alpine
container_name: pg-database
env_file:
- ./api/.env
volumes:
- ./postgres:/var/lib/postgresql/data
- "/etc/localtime:/etc/localtime:ro"
networks:
- redePostgres
dev-api:
image: joaomede/nodejs12prod:1.0
container_name: "dev-api"
ports:
- 8081:80
expose:
- 8081
depends_on:
- pg
links:
- pg
environment:
HOSTDB: pg
env_file:
- ./api/.env
command: >
bash -c "./scripts/dev.sh"
volumes:
- ./api:/usr/src/app/api
- ./scripts:/usr/src/app/scripts
- "/etc/localtime:/etc/localtime:ro"
networks:
- redePostgres
dev-view:
image: joaomede/nodejs12prod:1.0
container_name: "dev-view"
ports:
- 8080:8080
expose:
- 8080
depends_on:
- dev-api
links:
- dev-api
command: yarn dev:pwa
volumes:
- ./view:/usr/src/app
networks:
- redePostgres
networks:
redePostgres:
driver: bridge