-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
47 lines (43 loc) · 929 Bytes
/
docker-compose.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
version: '3'
services:
beatworm-server:
build: ./server
command: npm run start:dev
volumes:
- ./server:/usr/app/
- /usr/app/node_modules
ports:
- "8000:8000"
depends_on:
- postgres
environment:
PG_HOST: postgres
postgres:
image: postgres:9.6.8-alpine
restart: always
ports:
- "5432:5432"
environment:
POSTGRES_USER: samcatherman
POSTGRES_DB: beatworm_dev
nginx:
image: nginx:latest
depends_on:
- beatworm-server
ports:
- "80:80"
- "443:443"
- "8080:443"
volumes:
- ./nginx/beatworm.conf:/etc/nginx/conf.d/beatworm.conf
- client-dist:/opt/local/beatworm-ui
beatworm-ui:
build: ./client
command: npm run start-dev-server
volumes:
- ./client/src:/usr/src/src
- client-dist:/usr/src/dist
environment:
NODE_ENV: development
volumes:
client-dist: