-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.base.yml
47 lines (43 loc) · 1.09 KB
/
docker-compose.base.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
services:
# Main NextJS frontend app
nextjs:
build:
context: ./frontend
environment:
# Google Identity Provider
GOOGLE_CLIENT_ID: $GOOGLE_CLIENT_ID
GOOGLE_CLIENT_SECRET: $GOOGLE_CLIENT_SECRET
# Main Phoenix backend app
phoenix:
build:
context: ./backend
environment:
# Postgres
PGHOST: db
# Google Identity Provider
GOOGLE_CLIENT_ID: $GOOGLE_CLIENT_ID
# Google Recaptcha
GOOGLE_RECAPTCHA_SECRET_KEY: $GOOGLE_RECAPTCHA_SECRET_KEY
GOOGLE_RECAPTCHA_VERIFICATION_URL: https://www.google.com/recaptcha/api/siteverify
# SMTP
SMTP_HOST: $SMTP_HOST
SMTP_USER: $SMTP_USER
SMTP_PASS: $SMTP_PASS
SMTP_PORT: $SMTP_PORT
SMTP_FROM: $SMTP_FROM
SMTP_NAME: $SMTP_NAME
SMTP_TLS: $SMTP_TLS
SMTP_ADMIN_INBOX: $SMTP_ADMIN_INBOX
depends_on:
- db
# Backend database
db:
image: postgres:15.1
environment:
PGHOST: db
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- pgdata:/var/lib/postgresql/data
restart: always
volumes:
pgdata: