oliverbooth.dev/docker-compose.yml
Oliver Booth c1d27dc151
Some checks failed
.NET / Build & Test (push) Failing after 41s
build: add api and admin projects to docker-compose
2024-03-02 05:31:27 +00:00

64 lines
1.5 KiB
YAML

version: '3.9'
services:
oliverbooth:
container_name: oliverbooth.dev
pull_policy: build
build:
context: .
dockerfile: OliverBooth/Dockerfile
volumes:
- type: bind
source: /var/log/oliverbooth/site
target: /app/logs
- type: bind
source: /etc/oliverbooth/site
target: /app/data
ports:
- "2845:2845"
restart: always
environment:
- SSL_CERT_PATH=${SSL_CERT_PATH}
- SSL_KEY_PATH=${SSL_KEY_PATH}
- MASTODON_TOKEN=${MASTODON_TOKEN}
- MASTODON_ACCOUNT=${MASTODON_ACCOUNT}
oliverbooth_api:
container_name: api.oliverbooth.dev
pull_policy: build
build:
context: .
dockerfile: OliverBooth.Api/Dockerfile
volumes:
- type: bind
source: /var/log/oliverbooth/api
target: /app/logs
- type: bind
source: /etc/oliverbooth/api
target: /app/data
ports:
- "2844:2844"
restart: always
environment:
- SSL_CERT_PATH=${API_SSL_CERT_PATH}
- SSL_KEY_PATH=${API_SSL_KEY_PATH}
oliverbooth_admin:
container_name: admin.oliverbooth.dev
pull_policy: build
build:
context: .
dockerfile: OliverBooth.Admin/Dockerfile
volumes:
- type: bind
source: /var/log/oliverbooth/admin
target: /app/logs
- type: bind
source: /etc/oliverbooth/admin
target: /app/data
ports:
- "2843:2843"
restart: always
environment:
- SSL_CERT_PATH=${ADMIN_SSL_CERT_PATH}
- SSL_KEY_PATH=${ADMIN_SSL_KEY_PATH}