forked from NetCoreApps/CreatorKit
/
docker-compose-template.yml
49 lines (44 loc) · 1.11 KB
/
docker-compose-template.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
version: "3.9"
services:
${APP_NAME}:
image: ghcr.io/${IMAGE_REPO}:${RELEASE_VERSION}
restart: always
ports:
- "80"
environment:
VIRTUAL_HOST: ${HOST_DOMAIN}
LETSENCRYPT_HOST: ${HOST_DOMAIN}
LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL}
volumes:
- ${APP_NAME}-mydb:/app/App_Data
${APP_NAME}-litestream:
image: litestream/litestream
restart: always
profiles:
- litestream-backup
command: replicate -config /config/litestream.yml
volumes:
- ${APP_NAME}-mydb:/data
- ./${APP_NAME}/config:/config
${APP_NAME}-restore:
image: litestream/litestream
restart: "no"
profiles:
- litestream
command: restore -if-db-not-exists -if-replica-exists -config /config/litestream.yml /data/db.sqlite
volumes:
- ${APP_NAME}-mydb:/data
${APP_NAME}-migration:
image: ghcr.io/${IMAGE_REPO}:${RELEASE_VERSION}
restart: "no"
profiles:
- migration
command: --AppTasks=migrate
volumes:
- ${APP_NAME}-mydb:/app/App_Data
networks:
default:
name: nginx
external: true
volumes:
${APP_NAME}-mydb: