Verified Commit eb66f6b5 authored by Quentin Duchemin's avatar Quentin Duchemin
Browse files

[CodiMD] Don't use external volumes, change restart policy and fix secret path

parent 7249cb74
version: '3'
version: '3.7'
networks:
proxy:
external: true
codimd:
name: "codimd"
volumes:
codimd-db:
name: 'codimd-db'
codimd-data:
name: 'codimd-data'
services:
codimd-db:
image: postgres:12-alpine
......@@ -8,8 +22,8 @@ services:
volumes:
- codimd-db:/var/lib/postrgresql/data
- /etc/localtime:/etc/localtime:ro
env_file: ./secrets/codimd-db.secrets.example
restart: always
env_file: ./secrets/codimd-db.secrets
restart: unless-stopped
codimd-app:
image: registry.picasoft.net/pica-codimd:2.2.0
......@@ -19,7 +33,7 @@ services:
- codimd-data:/home/codimd/app/public/uploads
depends_on:
- codimd-db
env_file: ./secrets/codimd-db.secrets.example
env_file: ./secrets/codimd-db.secrets
environment:
- CMD_USECDN=false
- CMD_DOMAIN=codimd.picasoft.net
......@@ -35,16 +49,4 @@ services:
traefik.http.routers.codimd-app.rule: Host(`codimd.picasoft.net`)
traefik.http.services.codimd-app.loadbalancer.server.port: 3000
traefik.enable: true
restart: always
networks:
proxy:
external: true
codimd:
name: "codimd"
volumes:
codimd-db:
external: true
codimd-data:
external: true
restart: unless-stopped
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment