This repository has been archived by the owner on Aug 9, 2020. It is now read-only.
forked from Tecnativa/doodba-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcommon.yaml
62 lines (58 loc) · 1.89 KB
/
common.yaml
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
version: "2.1"
services:
odoo:
image: $ODOO_IMAGE:$ODOO_MINOR
build:
context: ./odoo
args:
ODOO_VERSION: $ODOO_MINOR
environment:
PGDATABASE: &dbname prod
PGUSER: &dbuser "$DB_USER"
DB_FILTER: "$DB_FILTER"
PROXY_MODE: "$ODOO_PROXY_MODE"
tty: true
volumes:
- filestore:/var/lib/odoo:z
labels:
traefik.docker.network: "inverseproxy_shared"
traefik.enable: "true"
traefik.frontend.passHostHeader: "true"
traefik.longpolling.port: "8072"
traefik.port: "8069"
db:
image: tecnativa/postgres-autoconf:${DB_VERSION}-alpine
environment:
POSTGRES_DB: *dbname
POSTGRES_USER: *dbuser
volumes:
- db:/var/lib/postgresql/data:z
command:
- -cwork_mem=32MB
smtpfake:
image: mailhog/mailhog
smtpreal:
image: tecnativa/postfix-relay
volumes:
- smtp:/var/spool/postfix
environment:
MAILNAME: "$SMTP_REAL_MAILNAME"
MAIL_RELAY_HOST: "$SMTP_REAL_RELAY_HOST"
MAIL_RELAY_PORT: "$SMTP_REAL_RELAY_PORT"
MAIL_RELAY_USER: "$SMTP_REAL_RELAY_USER"
MAIL_CANONICAL_DOMAINS: "$SMTP_REAL_CANONICAL_DOMAINS"
MAIL_NON_CANONICAL_DEFAULT: "$SMTP_REAL_NON_CANONICAL_DEFAULT"
backup:
image: tecnativa/duplicity:postgres-s3
hostname: backup
domainname: "$DOMAIN_PROD"
environment:
DST: "s3://s3.amazonaws.com/$BACKUP_S3_BUCKET"
EMAIL_FROM: "$BACKUP_EMAIL_FROM"
EMAIL_TO: "$BACKUP_EMAIL_TO"
PGDATABASE: *dbname
PGUSER: *dbuser
SMTP_HOST: smtplocal
volumes:
- backup_cache:/root:z
- filestore:/mnt/backup/src/odoo:z