-
Notifications
You must be signed in to change notification settings - Fork 98
/
Copy pathdocker-compose.yml
46 lines (44 loc) · 1.31 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
version: "3"
services:
ags:
build:
context: .
dockerfile: Dockerfile
restart: always
environment:
- SECRET_KEY=REPLACE_ME # replace this with a randomly generated value. Especially if running in production
- DATABASE_URL=sqlite:////data/db.sqlite3
# - DATABASE_URL=mysql://agsuser:agspassword@mariadb/agsdb
# - DATABASE_URL=postgres://agsuser:rootpassword@postgresdb/agsdb
- ALLOWED_HOST=localhost # replace with used hostname
- CSRF_TRUSTED_ORIGIN=http://localhost:21000 # replace with used origin
ports:
- "21000:8000"
volumes:
- data:/data
- ./deploy/local_settings.py:/app/local_settings.py
# - ./deploy/demo_middleware.py:/app/demo_middleware.py
# depends_on:
# - mariadb
# - postgresdb
# postgresdb:
# image: postgres:14
# environment:
# - POSTGRES_PASSWORD=rootpassword
# - POSTGRES_DB=agsdb
# - POSTGRES_USER=agsuser
# volumes:
# - postgresdb_data:/var/lib/postgresql/data
# mariadb:
# image: mariadb:10
# environment:
# - MARIADB_ROOT_PASSWORD=rootpassword
# - MARIADB_DATABASE=agsdb
# - MARIADB_USER=agsuser
# - MARIADB_PASSWORD=agspassword
# volumes:
# - mariadb_data:/var/lib/mysql
volumes:
data:
# mariadb_data:
# postgresdb_data: