GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — TWLight/docker-compose.deploy.yml at master · WikipediaLibrary/TWLight

Expand file tree

/

docker-compose.deploy.yml

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
60 lines (58 loc) · 1.67 KB
/

docker-compose.deploy.yml

Copy path

File metadata and controls

60 lines (58 loc) · 1.67 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
---
name: ${TWLIGHT_ENV:?set TWLIGHT_ENV in .env (see template.env)}
# The db root password rides in .env for the db service. The app connects as
# DJANGO_DB_USER and never reads it, so we blank the copy that env_file'ing .env
# would otherwise hand the app containers.
x-app-no-root-pw: &app-no-root-pw
MYSQL_ROOT_PASSWORD: ""
services:
db:
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
DJANGO_DB_NAME: ${DJANGO_DB_NAME}
DJANGO_DB_USER: ${DJANGO_DB_USER}
DJANGO_DB_PASSWORD: ${DJANGO_DB_PASSWORD}
restart: unless-stopped
migrate:
image: quay.io/wikipedialibrary/twlight:branch_${TWLIGHT_ENV}
depends_on:
- 'db'
volumes:
- type: bind
source: /usr/local/backup
target: /app/backup
- type: bind
source: ./media
target: /app/media
env_file:
- path: ./conf/${TWLIGHT_ENV}.twlight.env
required: true
- path: .env
required: true
environment: *app-no-root-pw
command: >
bash -c "/app/bin/backup.sh && /app/bin/migrate.sh"
restart: on-failure
twlight:
image: quay.io/wikipedialibrary/twlight:branch_${TWLIGHT_ENV}
depends_on:
- 'migrate'
volumes:
- type: bind
source: /usr/local/backup
target: /app/backup
env_file:
- path: ./conf/${TWLIGHT_ENV}.twlight.env
required: true
- path: .env
required: true
environment: *app-no-root-pw
restart: unless-stopped
web:
volumes:
- type: volume
target: /var/lib/nginx/cache
- type: bind
source: ./conf/${TWLIGHT_ENV}.nginx.conf
target: /etc/nginx/conf.d/default.conf
restart: unless-stopped
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.