forked from andela/archangel-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (46 loc) · 876 Bytes
/
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
version: '3'
services:
db:
image: 'postgres:latest'
env_file: .env
restart: always
volumes:
- dbase_data:/var/lib/postgresql/data/
networks:
- db_nw
api:
build:
context: .
dockerfile: Dockerfile.dev
command: 'npm run test'
depends_on:
- db
volumes:
- ./src:/app/
env_file: .env
networks:
- api_nw
- db_nw
nginx:
build:
context: ./nginx
dockerfile: Dockerfile.dev
restart: always
volumes:
- ./nginx/log:/var/log/nginx
depends_on:
- api
build:
dockerfile: Dockerfile.dev
context: ./nginx
networks:
- api_nw
ports:
- "3000:80"
volumes:
dbase_data:
networks:
db_nw:
driver: bridge
api_nw:
driver: bridge