-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.dev.yml
59 lines (55 loc) · 1.26 KB
/
docker-compose.dev.yml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
version: '3'
services:
postgres:
image: postgres
env_file:
- ./server/.development.env
environment:
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=admin
- POSTGRES_DB=attendance-db
ports:
- '5432:5432'
volumes:
- ./server/database/data/prod:/var/lib/postgresql/data
# pgadmin:
# links:
# - postgres:postgres
# container_name: pgadmin
# image: dpage/pgadmin4
# ports:
# - '8080:80'
# volumes:
# - ./server/database/data/pgadmin:/root/.pgadmin
# env_file:
# - ./server/.development.env
# networks:
# - postgres
apiserver:
build:
context: ./server
dockerfile: ./Dockerfile #context 안에서 상대경로
environment:
- NODE_ENV=development
command: ['yarn', 'start:dev']
ports:
- 3000:3000
volumes:
- ./server:/app:cached
depends_on:
- postgres
# nginx:
# build:
# context: ./nginx
# ports:
# - 9090:443
# volumes:
# - ./nginx/cream.dev.conf:/etc/nginx/conf.d/default.conf
# - ./nginx/dev-ssl:/etc/nginx/ssl
# frontserver:
# build:
# context: ./client
# dockerfile: ./Dockerfile
# command: ['yarn', 'start']
# volumes:
# - ./client:/app:cached