Skip to content

Commit

Permalink
ci: Add server configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
drikusroor committed Jan 26, 2024
1 parent fe4f6e6 commit dab8b02
Showing 1 changed file with 26 additions and 29 deletions.
55 changes: 26 additions & 29 deletions docker-compose-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,35 +24,32 @@ services:
image: extrawurst/ip2country:latest
ports:
- 8854:5000
# server:
# build:
# context: ./backend
# dockerfile: DockerfileDevelop
# depends_on:
# db:
# condition: service_healthy
# ip2country:
# condition: service_started
# volumes:
# - type: bind
# source: ./backend
# target: /server
# environment:
# - AML_ALLOWED_HOSTS=${AML_ALLOWED_HOSTS}
# - AML_DEBUG=${AML_DEBUG}
# - DJANGO_SETTINGS_MODULE=${DJANGO_SETTINGS_MODULE}
# - DJANGO_SUPERUSER_USERNAME=${DJANGO_SUPERUSER_USERNAME}
# - DJANGO_SUPERUSER_PASSWORD=${DJANGO_SUPERUSER_PASSWORD}
# - DJANGO_SUPERUSER_EMAIL=${DJANGO_SUPERUSER_EMAIL}
# - AML_LOCATION_PROVIDER=${AML_LOCATION_PROVIDER}
# - SENTRY_DSN=${SENTRY_DSN}
# - SQL_DATABASE=${SQL_DATABASE}
# - SQL_USER=${SQL_USER}
# - SQL_PASSWORD=${SQL_PASSWORD}
# - SQL_HOST=${SQL_HOST}
# ports:
# - 8000:8000
# command: bash -c "python manage.py migrate && python manage.py bootstrap && python manage.py runserver 0.0.0.0:8000"
server:
build:
context: ./backend
dockerfile: Dockerfile
depends_on:
db:
condition: service_healthy
ip2country:
condition: service_started
volumes:
- /home/github-runner/podman-volumes/server-static:/server/static
- /home/github-runner/podman-volumes/server-logs:/server/logs
- /home/github-runner/podman-volumes/server-uploads:/server/upload
environment:
- AML_ALLOWED_HOSTS=${AML_ALLOWED_HOSTS}
- AML_DEBUG=${AML_DEBUG}
- DJANGO_SETTINGS_MODULE=${DJANGO_SETTINGS_MODULE}
- AML_LOCATION_PROVIDER=${AML_LOCATION_PROVIDER}
- SENTRY_DSN=${SENTRY_DSN}
- SQL_DATABASE=${SQL_DATABASE}
- SQL_USER=${SQL_USER}
- SQL_PASSWORD=${SQL_PASSWORD}
- SQL_HOST=${SQL_HOST}
ports:
- 8000:8000
command: bash -c "python manage.py migrate && python manage.py bootstrap && python manage.py runserver 0.0.0.0:8000"
client-builder:
build:
context: ./frontend
Expand Down

0 comments on commit dab8b02

Please sign in to comment.