-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.old.yml
56 lines (49 loc) · 1.53 KB
/
docker-compose.old.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
version: '3.9'
x-clean-template: &clean-template
build: ./cleasdfsn # Build in the context of this directory (meaning: use Dockerfile, .dockerignore etc.)
volumes:
- ./clean:/app
- ignore_volume:/app/.venv
env_file:
- ./clean/.docker.env
environment:
- IS_DOCKER=True
x-solution-template: &solution-template
build: ./solution # Build in the context of this directory (meaning: use Dockerfile, .dockerignore etc.)
volumes:
- ./solution:/app
- ignore_volume:/app/.venv
- ignore_volume:/app/database
env_file:
- ./solution/.docker.env
environment:
- IS_DOCKER=True
services:
clean:
<<: *clean-template
depends_on:
- clean-db
ports:
- '8001:8000' # Quotes are required. django
- '6001:5678' # Quotes are required. debugpy
# One off command to setup db when starting 'clean'.
clean-db:
<<: *clean-template
entrypoint: ./entrypoint.sh
command: 'echo "Database ready. Running server on http://localhost:8001"'
solution:
<<: *solution-template
# command: pipenv run gunicorn --reload blog.wsgi:application
depends_on:
- solution-db
command: pipenv run python manage.py runserver 0.0.0.0:8000
ports:
- '8002:8000' # Quotes are required. django
- '6002:5678' # Quotes are required. debugpy
# One off command to setup db when starting 'solution'.
solution-db:
<<: *solution-template
entrypoint: ./entrypoint.sh
command: 'echo "Database ready. Running server on http://localhost:8002"'
volumes:
ignore_volume: