-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (40 loc) · 938 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
version: '3'
services:
web:
image: docker-phoenix
command: mix phx.server
env_file: .env
environment:
- MIX_ENV=dev
- PORT=4000
- DATABASE_URL=ecto://postgres:postgres@postgres/contributio_dev
volumes:
- ./backend:/app
ports:
- "4000:4000"
links:
- postgres
postgres:
image: postgres:9.6.5
volumes:
- "./backend/volumes/postgres:/var/lib/postgresql/data"
ports:
- "5432:5432"
front:
depends_on:
- web
build:
context: ./frontend
dockerfile: Dockerfile
volumes:
- ./frontend:/app
- ./frontend/node_modules:/app/node_modules
env_file: .env
environment:
- NODE_ENV=development
- ALLOW_ENDPOINT=$FRONTEND_URI/allow
- GITHUB_CLIENT_ID=$GITHUB_CLIENT_ID
command: yarn dev --hmr-port 1235
ports:
- "1234:1234" # dev server port
- "1235:1235" # HMR server port