-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (38 loc) · 818 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
39 lines (38 loc) · 818 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
version: '3.7'
services:
postgres:
container_name: postgres
image: postgres:12
ports:
- ${DATABASE_PORT}:5432
environment:
POSTGRES_USER: ${DATABASE_USER}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
POSTGRES_DB: ${DATABASE_DB}
PG_DATA: /var/lib/postgresql/data
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- backend
gazello:
container_name: gazello
image: gazello
# build:
# context: .
# target: development
env_file:
- .env
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
ports:
- 4000:4000
command: bash -c "npm install --save source-map-support && npm run start:dev"
depends_on:
- postgres
networks:
- backend
networks:
backend:
volumes:
pgdata: