forked from bennibu/sharedlists
-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
63 lines (59 loc) · 1.83 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
version: '3'
services:
mariadb:
container_name: sharedlists-db
image: mariadb:10.11
restart: always
healthcheck:
test: [ "CMD", "healthcheck.sh", "--su-mysql", "--connect", "--innodb_initialized" ]
interval: 30s
retries: 3
timeout: 30s
environment:
- MARIADB_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD}
- MARIADB_USER=sharedlists
- MARIADB_PASSWORD=${SHAREDLISTS_DB_PASSWORD}
- MARIADB_DATABASE=sharedlistsdb
volumes:
- mariadb:/var/lib/mysql
sharedlists:
container_name: sharedlists-app
image: foodcoops/sharedlists:${SHAREDLISTS_VERSION:-latest}
restart: always
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000"]
interval: 1m
retries: 3
timeout: 10s
environment:
- DATABASE_URL=mysql2://sharedlists:${SHAREDLISTS_DB_PASSWORD}@mariadb/sharedlistsdb?encoding=utf8mb4
- SECRET_KEY_BASE=${SHAREDLISTS_SECRET_KEY_BASE}
- MAILER_DOMAIN=${MAILER_DOMAIN}
- MAILER_PREFIX=${MAILER_PREFIX:-sharedlists+}
volumes:
- supplier_assets:/usr/src/app/supplier_assets
ports:
- ${SHAREDLISTS_PORT:-3000}:3000
depends_on:
mariadb:
condition: service_healthy
sharedlists_cron:
container_name: sharedlists-cron
image: foodcoops/sharedlists:${SHAREDLISTS_VERSION:-latest}
restart: always
environment:
- SECRET_KEY_BASE=${SHAREDLISTS_SECRET_KEY_BASE}
command: ./proc-start cron
sharedlists_smtp:
container_name: sharedlists-smtp
image: foodcoops/sharedlists:${SHAREDLISTS_VERSION:-latest}
environment:
- SECRET_KEY_BASE=${SHAREDLISTS_SECRET_KEY_BASE}
- SMTP_SERVER_PORT=2525
- SMTP_SERVER_HOST=0.0.0.0
ports:
- ${SHAREDLISTS_SMTP_SERVER_PORT:-2525}:2525
command: ./proc-start mail
volumes:
mariadb:
supplier_assets: