build: add api and admin projects to docker-compose
.NET / Build & Test (push) Failing after 41s Details

This commit is contained in:
Oliver Booth 2024-03-02 05:31:27 +00:00
parent dd2438153c
commit c1d27dc151
Signed by: oliverbooth
GPG Key ID: E60B570D1B7557B5
1 changed files with 40 additions and 0 deletions

View File

@ -21,3 +21,43 @@ services:
- 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}