forked from novalabsxyz/blockchain-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (41 loc) · 842 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (41 loc) · 842 Bytes
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
version: '3.5'
services:
app:
build: .
image: "helium/blockchain_api:${MIX_ENV}-latest"
restart: always
depends_on:
- postgres
env_file:
- config/docker-${MIX_ENV}.env
depends_on:
- db_local
networks:
- nginx_network
- app_network
db_local:
build: ./postgres
image: helium/postgres:local
container_name: postgres
restart: always
volumes:
- /var/data/dev/postgresql:/var/lib/postgresql/data
env_file:
- config/docker-${MIX_ENV}.env
networks:
- app_network
nginx:
build: ./nginx
image: helium/nginx:local
volumes:
- ./nginx/lb.conf:/etc/nginx/conf.d/lb.conf
ports:
- "1313:8080"
networks:
- nginx_network
depends_on:
- app
networks:
nginx_network:
external: true
app_network: