-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
89 lines (76 loc) · 2.02 KB
/
docker-compose.yaml
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
version: '3.4'
x-common-variables: &common-variables
MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: minio123
MINIO_URL: minio:9000
MINIO_BUCKET_NAME: hse-api-bucket
RESTRICTED_MODE: 0
services:
hse-api-web:
build:
context: .
dockerfile: hseling_api_diachrony_webvectors/Dockerfile
ports:
- "5000:80"
volumes:
- ./hseling_api_diachrony_webvectors/hseling_api_diachrony_webvectors:/app/hseling_api_diachrony_webvectors
links:
- minio
environment: *common-variables
minio:
image: minio/minio:latest
volumes:
- data:/data
ports:
- "9000:9000"
command: server /data/minio
environment: *common-variables
# Development related
db:
env_file: hseling_web_diachrony_webvectors/environment.env
build:
context: ./hseling_web_diachrony_webvectors/
dockerfile: ./docker/db/Dockerfile
args:
# These values should be in sync with environment.env
# for development. If you change them, you'll
# need to rebuild the container
- POSTGRES_DB=templatesitedb
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=somepassword
- POSTGRES_PORT=5432
# Remember to keep this consistent
- django_secret_key=secret_key!
log:
env_file: hseling_web_diachrony_webvectors/environment.env
build:
context: ./hseling_web_diachrony_webvectors/
dockerfile: ./docker/log/Dockerfile
build-deps:
env_file: hseling_web_diachrony_webvectors/environment.env
build:
context: ./hseling_web_diachrony_webvectors/
dockerfile: ./docker/deps/Dockerfile
volumes:
- ./hseling_web_diachrony_webvectors/vendor:/opt/ext_vendor
command: /opt/copy_deps.sh
dev-server:
env_file: hseling_web_diachrony_webvectors/environment.env
environment:
- CONSOLE_LOGS=1
build:
context: ./hseling_web_diachrony_webvectors/
args:
# Remember to keep this consistent
- django_secret_key=secret_key!
command: ./start_dev_server.sh
ports:
- "8000:80"
volumes:
- ./hseling_web_diachrony_webvectors/src:/opt/code
depends_on:
- db
- log
- hse-api-web
volumes:
data: