-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
executable file
·80 lines (74 loc) · 1.97 KB
/
docker-compose.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
version: "3.7"
services:
web:
image: ticketvise/backend
build: ./backend
command: >
sh -c "python manage.py collectstatic --no-input --clear &&
python manage.py wait_for_database &&
python manage.py configure_s3 &&
python manage.py migrate --no-input &&
python manage.py insert_demo_data &&
python manage.py runserver 0.0.0.0:6000"
ports:
- "6000:6000"
volumes:
- ./backend:/backend
environment:
DJANGO_SECRET: Welkom01
EMAIL_PASSWORD: Welkom01
SQL_HOST: database
SQL_DATABASE: ticketvise
SQL_ENGINE: django.db.backends.postgresql
SQL_USER: ticketvise
SQL_PASSWORD: Welkom01
LTI_KEY: LtiKey01
LTI_SECRET: LtiSecret01
HOST: localhost:8080
S3_USE_HTTPS: 0
S3_ACCESS_KEY: minio
S3_SECRET_KEY: Welkom01
DOMAIN: local.ticketvise.com
MICROSOFT_CLIENT_ID: ${MICROSOFT_CLIENT_ID}
MICROSOFT_CLIENT_SECRET: ${MICROSOFT_CLIENT_SECRET}
proxy:
image: ticketvise/proxy
build: ./proxy
ports:
- "8080:8080"
entrypoint: ""
volumes:
- ./proxy/nginx.dev.conf:/etc/nginx/conf.d/nginx.conf
database:
hostname: database
image: postgres:12-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
POSTGRES_DB: ticketvise
POSTGRES_USER: ticketvise
POSTGRES_PASSWORD: Welkom01
ports:
- "5432:5432"
frontend:
image: ticketvise/frontend
build: ./frontend
ports:
- "80:80"
s3:
image: minio/minio:latest
volumes:
- minio_data:/data
ports:
- "9000:9000"
- "9001:9001"
entrypoint: sh
command: -c 'mkdir -p /data/$$S3_BUCKET_NAME && minio server /data --console-address ":9001"'
environment:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: Welkom01
S3_ENDPOINT_URL: http://localhost:9000
S3_BUCKET_NAME: ticketvise
volumes:
postgres_data:
minio_data: