-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (34 loc) · 693 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (34 loc) · 693 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
services:
api:
build:
context: .
dockerfile: ./docker/Dockerfile
volumes:
- ./src:/app
- node_modules:/app/node_modules
command: /usr/local/wait-for-it.sh db:5432 -- yarn run dev
env_file:
- .env
ports:
- 3000:3000
networks:
- webnet
depends_on:
- db
db:
image: postgres:11
volumes:
- ./docker/init-user-db.sh/:/docker-entrypoint-initdb.d/init-user-db.sh
- ./db_data:/var/lib/postgresql/data
restart: always
networks:
- webnet
ports:
- 5439:5432
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: admin
networks:
webnet:
volumes:
node_modules: