-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.dev.example
More file actions
36 lines (34 loc) · 864 Bytes
/
Copy pathdocker-compose.dev.example
File metadata and controls
36 lines (34 loc) · 864 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
version: '3'
services:
database-service:
image: postgres:12
container_name: app-database
environment:
- POSTGRES_DB=reactnest
- POSTGRES_DB_TEST=reactnest_test
- POSTGRES_USER=reactnest_user
- POSTGRES_PASSWORD=123456
ports:
- '5432:5432'
expose:
- '5432'
volumes:
- ./database/docker-data/postgres:/var/lib/postgresql/data
# - ./database/schema.sql:/docker-entrypoint-initdb.d/0.schema.sql
#- ./database/initial-data.sql:/docker-entrypoint-initdb.d/1.data.sql
api-service:
build:
context: ./api
dockerfile: Dockerfile
working_dir: /api
container_name: app-api
volumes:
- ./api:/api
command: sh -c "npm run start:dev"
ports:
- '8000:8000'
expose:
- '5432'
env_file: ./api/.env
depends_on:
- database-service