-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (35 loc) · 916 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
39 lines (35 loc) · 916 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
38
version: '3'
services:
# web:
# build: .
# container_name: hack_web
# command: python manage.py runserver 0.0.0.0:8000
# volumes:
# - ./hack21/:/usr/src/hack21/
# ports:
# - 8000:8000
# env_file:
# - ./.env.dev
app:
command: /code/entrypoint.sh
build: .
container_name: hack_app
command: python manage.py runserver 0.0.0.0:8000
volumes:
- .:/code
ports:
- "8000:8000"
env_file:
- ./.env.dev
depends_on:
- db
db:
image: postgres:12.0-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=hack_user
- POSTGRES_PASSWORD=crazy_unicorn
- POSTGRES_DB=hack_db
volumes:
postgres_data: