-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
73 lines (58 loc) · 1.3 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
67
68
69
70
71
72
73
version: '3.8'
services:
postgres:
image: postgres:11.5
restart: always
environment:
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=${DATABASE}
ports:
- 5432:5432
user: postgres
networks:
- grepsr_shared-network
volumes:
- ./dump.sql:/docker-entrypoint-initdb.d/dump.sql
# - ./postgres-db:/var/lib/postgresql/data
node_api:
container_name: conduit_api
restart: on-failure
image: conduit-api-prod:1.0.0
build:
context: Conduit_NodeJS
target: production
dockerfile: Dockerfile
environment:
- DB_USERNAME=${DB_USERNAME}
- DB_PASSWORD=${DB_PASSWORD}
- DB_HOST=${DB_HOST}
- PORT=${PORT}
- DATABASE=${DATABASE}
expose:
- 8080
networks:
- grepsr_shared-network
ports:
- 8080:8080
depends_on:
- postgres
client:
container_name: conduit_client
restart: unless-stopped
image: conduit-client-prod:1.0.0
build:
context: next-realworld-example-app
target: production
dockerfile: Dockerfile
expose:
- 3000
links:
- node_api
networks:
- grepsr_shared-network
ports:
- 3000:3000
depends_on:
- node_api
networks:
grepsr_shared-network: