Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
# Define the logging configuration once
x-logging: &default-logging
driver: "local"
options:
max-size: "100m"
max-file: "7"
compress: "true"

services:
# service configuration for our dockerized Rails app

netrunner_cards_json:
restart: none
image: registry.digitalocean.com/nsgcr/netrunner-cards-json:${JSON_DATA_VERSION:-latest}
build: https://github.com/NetrunnerDB/netrunner-cards-json.git#main

logging: *default-logging

volumes:
- netrunner-cards-json:/mnt/netrunner-cards-json

Expand All @@ -15,6 +26,8 @@ services:
# build the Dockerfile next to this file, tag the built image with above image name
build: .

logging: *default-logging

networks:
- backend
- null_signal
Expand All @@ -35,13 +48,15 @@ services:
volumes:
- ./config/database.yml:/var/www/nrdb-api/config/database.yml
- netrunner-cards-json:/netrunner-cards-json
- nrdb-api-logs:/var/www/nrdb-api/log
- ./log:/var/www/nrdb-api/log

# service configuration for our database
db:
restart: unless-stopped
image: postgres:14.5-alpine

logging: *default-logging

networks:
- backend

Expand All @@ -58,6 +73,5 @@ networks:
external: true

volumes:
nrdb-api-logs:
nrdb-api-postgres:
netrunner-cards-json:
Loading