-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
83 lines (73 loc) · 2.01 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
81
82
83
services:
wsaf-postgres:
container_name: WSAF-Postgres
image: postgres:latest
volumes:
- wsaf-postgres:/var/lib/postgresql/data/
networks:
- wsaf-network
environment:
POSTGRES_USER: wsaf
POSTGRES_DB: wsaf
env_file:
- stack.env
wsaf24-website:
container_name: WSAF24-Website
image: ghcr.io/warwickstudentartsfestival/wsaf24-website:main
networks:
- wsaf-network
depends_on:
- wsaf-postgres
environment:
VIRTUAL_HOST: ${WSAF24_WEBSITE_VIRTUAL_HOST}
POSTGRES_USER: wsaf
POSTGRES_DB: wsaf
PORT: 3000
BASE_URL: ${WSAF24_WEBSITE_BASE_URL}
HOSTNAME: 0.0.0.0
NODE_ENV: production
NEXT_PUBLIC_GOOGLE_ANALYTICS_ID: ${WSAF24_GOOGLE_ANALYTICS_ID}
DATABASE_URL: "postgresql://wsaf:${POSTGRES_PASSWORD}@wsaf-postgres:5432/wsaf?schema=public"
env_file:
- stack.env
wsaf-management:
container_name: WSAF24-Management
image: ghcr.io/warwickstudentartsfestival/wsaf-management:main
volumes:
- wsaf-management-media:/srv/app/public/media
networks:
- wsaf-network
expose:
- "8080"
depends_on:
- wsaf-postgres
environment:
VIRTUAL_HOST: ${WSAF_MANAGEMENT_VIRTUAL_HOST}
DATABASE_URL: postgres://wsaf:${POSTGRES_PASSWORD}@wsaf-postgres:5432/wsaf?sslmode=disable
VIRTUAL_PORT: 8080
USE_DOCKER: 'on'
DJANGO_SETTINGS_MODULE: config.settings
SECRET_KEY: ${WSAF_MANAGEMENT_SECRET_KEY}
INTERNAL_IPS: 127.0.0.1,0.0.0.0
CSRF_TRUSTED_ORIGINS: ${WSAF_MANAGEMENT_BASE_URL}
VITE_DEV_MODE: 'false'
env_file:
- stack.env
wsaf-assets:
container_name: WSAF-Assets
image: nginx
volumes:
- wsaf-management-media:/usr/share/nginx/html:ro
networks:
- wsaf-network
environment:
VIRTUAL_HOST: ${WSAF_ASSETS_VIRTUAL_HOST}
env_file:
- stack.env
volumes:
wsaf-postgres:
wsaf-management-media:
external:
name: wsaf-management-media
networks:
wsaf-network: