-
Notifications
You must be signed in to change notification settings - Fork 0
/
prod.yml
66 lines (57 loc) · 1.45 KB
/
prod.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
version: "3.8"
services:
proxy:
image: nginx:latest
container_name: miljomataren_proxy
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
ports:
- "127.0.0.1:${PORT}:80"
expose:
- "${PORT}"
depends_on:
- abernathy
- lowe
lowe:
image: registry.gitlab.com/vilhelm/miljomataren:lowe
environment:
# Google Sign-In
GOOGLE_CLIENT_ID: "${GOOGLE_CLIENT_ID}"
GOOGLE_CLIENT_SECRET: "${GOOGLE_CLIENT_SECRET}"
# App url
BASE_URL: "${BASE_URL}"
FRONTEND_URL: "${FRONTEND_URL}"
# Database and session
DATABASE_HOST: "postgresql"
REDIS_HOST: "redis"
DATABASE_PASSWORD: "${POSTGRES_PASSWORD}"
# Since we're running behind proxy, this is OK
OAUTHLIB_INSECURE_TRANSPORT: "1"
# Timezone
TZ: "${TIMEZONE}"
volumes:
- type: bind
source: ./fuel_prices.json
target: /var/www/app/fuel_prices.json
depends_on:
- postgresql
- redis
abernathy:
image: registry.gitlab.com/vilhelm/miljomataren:abernathy
environment:
# Backend URL is the BASE_URL
BACKEND_URL: "${BASE_URL}"
postgresql:
image: postgres
environment:
POSTGRES_DB: "miljomataren"
POSTGRES_USER: "miljomataren"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
TZ: "${TIMEZONE}"
PGTZ: "${TIMEZONE}"
volumes:
- postgresql:/var/lib/postgresql/data
redis:
image: redis
volumes:
postgresql: