-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (36 loc) · 912 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (36 loc) · 912 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
version: "3"
services:
db:
build:
context: .
dockerfile: ./container/db/Dockerfile
ports:
- 5454:5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: satoruchan
volumes:
- satoruchan_db_data:/var/lib/postgresql/data
- ./container/db/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
container_name: satoruchan_db
web:
build:
context: .
dockerfile: ./container/app/Dockerfile
depends_on:
- db
tty: true
ports:
- 8888:8888
environment:
- DATABASE_URL=postgres://postgres:postgres@satoruchan_db:5432/satoruchan
- NODE_ENV=development
container_name: node_app
volumes:
- satoruchan_node_modules:/usr/src/app/node_modules
- ./app:/usr/src/app
command: yarn dev-tsd
volumes:
satoruchan_db_data: {}
satoruchan_node_modules: {}