-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-production-example.yml
41 lines (38 loc) · 1.24 KB
/
docker-compose-production-example.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
# This is an example docker-compose.yml that can be used on a production server.
# The environment variables defined under the `web` service are used in `ActivityLeague/settings.py`
# and can be configured as your deployed instance requires.
# See `docker-compose.yml` for a configuration which can be used during development.
version: "3.9"
services:
db:
image: postgres
environment:
POSTGRES_DB: postgres
POSTGRES_USER: POSTGRES_USER
POSTGRES_PASSWORD: POSTGRES_PASSWORD
volumes:
- postgres_data:/var/lib/postgresql/data/
web:
image: docker.pkg.github.com/uclcomputerscience/comp0016_2020_21_team19/activityleague_web:latest
ports:
- "8000:8000"
depends_on:
- db
environment:
DB_USER: POSTGRES_USER
DB_PASSWORD: POSTGRES_PASSWORD
DEBUG: "False"
EMAIL_HOST: MAILSERVER.COM
EMAIL_HOST_PASSWORD: EMAIL_HOST_PASSWORD
EMAIL_HOST_USER: EMAIL_HOST_USER
GOOGLE_CLIENT_ID: GOOGLE_CLIENT_ID
GOOGLE_SECRET: GOOGLE_SECRET
SECRET_KEY: SECRET_KEY
watchtower:
image: containrrr/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /home/host/.docker/config.json:/config.json
command: --interval 30
volumes:
postgres_data: