mirror of
https://github.com/offen/website.git
synced 2024-11-22 17:10:29 +01:00
49 lines
1.0 KiB
YAML
49 lines
1.0 KiB
YAML
version: '3'
|
|
|
|
services:
|
|
proxy:
|
|
image: nginx:1.17-alpine
|
|
volumes:
|
|
- ./nginx.conf:/etc/nginx/nginx.conf
|
|
ports:
|
|
- 8000:80
|
|
depends_on:
|
|
- homepage
|
|
- server
|
|
|
|
server:
|
|
image: offen/offen:latest
|
|
command: serve
|
|
volumes:
|
|
- ./bootstrap.yml:/bootstrap.yml
|
|
environment:
|
|
POSTGRES_CONNECTION_STRING: postgres://postgres:develop@server_database:5432/postgres?sslmode=disable
|
|
DEVELOPMENT: '1'
|
|
PORT: 8080
|
|
COOKIE_EXCHANGE_SECRET: 8jeKYbbnywoYIZznu4HffQ==
|
|
EVENT_RETENTION_PERIOD: 4464h
|
|
ACCOUNT_USER_EMAIL_SALT: eypctS7SVKM1Ureb61db5Q==
|
|
SECURE_COOKIE: 'off'
|
|
depends_on:
|
|
- server_database
|
|
|
|
server_database:
|
|
image: postgres:11.2
|
|
environment:
|
|
POSTGRES_PASSWORD: develop
|
|
|
|
homepage:
|
|
build:
|
|
context: '.'
|
|
dockerfile: ./Dockerfile.python
|
|
working_dir: /website/homepage
|
|
volumes:
|
|
- .:/website
|
|
- homepagedeps:/root/.local
|
|
command: make devserver
|
|
environment:
|
|
DEBUG: 1
|
|
|
|
volumes:
|
|
homepagedeps:
|