-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose-b.yml
More file actions
37 lines (33 loc) · 921 Bytes
/
docker-compose-b.yml
File metadata and controls
37 lines (33 loc) · 921 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: '2'
services:
# frontend:
# build:
# context: ./frontend
# dockerfile: Dockerfile.dev
# volumes:
# - ./frontend:/code
# ports:
# - 3000:3000
# # environment:
# # - NODE_PATH=/install/node_modules
backend:
build:
context: ./backend
dockerfile: Dockerfile
volumes:
- ./backend:/code
ports:
- 8000:80
environment:
- DJANGO_SETTINGS_MODULE=dev_settings
- DB_HOST_BC_DEV=db
# command: bash -c 'while !</dev/tcp/db/5432; do sleep 1; done; python manage.py migrate && uwsgi --ini uwsgi.ini'
command: bash -c 'while !</dev/tcp/db/5432; do sleep 1; done; python manage.py migrate && python manage.py runserver 0.0.0.0:80'
db:
image: postgres:latest
ports:
- 5432:5432
environment:
- POSTGRES_USER=battlecode
- POSTGRES_DB=battlecode
- POSTGRES_PASSWORD=mysecretpassword