-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
46 lines (42 loc) · 844 Bytes
/
docker-compose.dev.yml
File metadata and controls
46 lines (42 loc) · 844 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
44
45
46
version: '3.7'
services:
aqs-db:
image: postgres
container_name: aqs-db
restart: always
env_file: .env
environment:
- POSTGRES_USER=${DB_USERNAME}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=${DB_DATABASE}
ports:
- ${DB_PORT}:5432
volumes:
- aqs_postgres_data:/var/lib/postgresql/data
networks:
- aqs-network
aqs-api:
build:
context: .
dockerfile: Dockerfile.dev
container_name: aqs-api
env_file: .env
environment:
- NODE_ENV=${NODE_ENV}
- DB_HOST=${DB_HOST}
restart: always
ports:
- ${API_PORT}:3000
working_dir: /app
volumes:
- ./:/app
depends_on:
- aqs-db
networks:
- aqs-network
networks:
aqs-network:
driver: bridge
volumes:
aqs_postgres_data:
driver: local