-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.network.yml
64 lines (61 loc) · 1.41 KB
/
docker-compose.network.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
60
61
62
63
64
services:
app:
build:
context: .
args:
- DEV=true
container_name: club-app-network
ports:
- '8000:8000'
volumes:
- ./app:/app
- club-static:/vol/static
- ./generated:/generated
# - api-spec:/app/bin
command: >
sh -c "python manage.py wait_for_db &&
python manage.py migrate &&
python manage.py init_superuser &&
entrypoint.sh"
# env_file:
# - .env
environment:
- PORT=9000
- DJANGO_ENV=dev
- DB_HOST=osc-network-db
- DB_NAME=devdatabase
- DB_USER=devuser
- DB_PASS=devpass
- DEBUG=1
- DJANGO_ALLOWED_HOSTS=*
- S3_STORAGE_BACKEND=0
- CREATE_SUPERUSER=1
- DJANGO_SUPERUSER_EMAIL=${DJANGO_SUPERUSER_EMAIL:[email protected]}
- DJANGO_SUPERUSER_PASS=${DJANGO_SUPERUSER_PASS:-changeme}
depends_on:
- postgres
networks:
- cluster
postgres:
image: postgres:13-alpine
container_name: osc-network-db
volumes:
- postgres-osc-network:/var/lib/postgresql/data
environment:
- POSTGRES_DB=devdatabase
- POSTGRES_USER=devuser
- POSTGRES_PASSWORD=devpass
networks:
- cluster
volumes:
postgres-osc-network:
club-static:
name: club-static
external: true
# api-spec:
# name: api-spec
# external: true
networks:
cluster:
name: jukebox_cluster
external: true