Skip to content

Commit

Permalink
Add draft docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
psiemens committed Dec 3, 2024
1 parent ca086b4 commit 45920a3
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
version: "3.7"
services:

db:
platform: linux/x86_64
image: mysql:8.0
volumes:
- database:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: ubyssey
MYSQL_DATABASE: ubyssey
ports:
- "3307:3306"
healthcheck:
test: "/usr/bin/mysql --user=root --password=ubyssey --execute \"SHOW DATABASES;\""
interval: 2s
timeout: 20s
retries: 20

django:
image: ubyssey/ubyssey.ca:latest
command: >
bash -c "python manage.py migrate
&& python manage.py runserver 0.0.0.0:8000"
environment:
DEBUG: True
DJANGO_SETTINGS_MODULE: config.settings.production
GS_ACCESS_KEY_ID: ${GS_ACCESS_KEY_ID}
GS_SECRET_ACCESS_KEY: ${GS_SECRET_ACCESS_KEY}
ports:
- "8000:8000"
- "4444:4444"
depends_on:
db:
condition: service_healthy
restart: true
stdin_open: true
tty: true

cache:
platform: linux/x86_64
image: memcached:1.6.10
ports:
- "11211:11211"
depends_on:
- django

volumes:
database:

0 comments on commit 45920a3

Please sign in to comment.