-
-
Save marinho/58dfed44e93bcd33fea27a4211e9a8db to your computer and use it in GitHub Desktop.
AdventureLog Configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # π Frontend | |
| PUBLIC_SERVER_URL=http://server:8000 | |
| ORIGIN=http://adventurelog-frontend:3000 | |
| BODY_SIZE_LIMIT=Infinity | |
| FRONTEND_PORT=3000 | |
| # π PostgreSQL Database | |
| PGHOST=main-postgres | |
| POSTGRES_DB=adventurelog | |
| POSTGRES_USER=adventurelog | |
| POSTGRES_PASSWORD=abc123 | |
| # π Django Backend | |
| SECRET_KEY=abc123 | |
| DJANGO_ADMIN_USERNAME=admin | |
| DJANGO_ADMIN_PASSWORD=abc123 | |
| [email protected] | |
| PUBLIC_URL=https://trips.my-domain.com | |
| CSRF_TRUSTED_ORIGINS=http://adventurelog-frontend:3000,http://adventurelog-backend:80,https://trips.my-domain.com,https://trips-be.my-domain.com | |
| DEBUG=False | |
| FRONTEND_URL=http://adventurelog-frontend:3000 | |
| BACKEND_PORT=80 | |
| DISABLE_REGISTRATION=False | |
| APP_PATH=/srv/adventurelog |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| services: | |
| web: | |
| #build: ./frontend/ | |
| image: ghcr.io/seanmorley15/adventurelog-frontend:latest | |
| container_name: adventurelog-frontend | |
| restart: unless-stopped | |
| env_file: .env | |
| depends_on: | |
| - server | |
| networks: | |
| - common-network | |
| server: | |
| #build: ./backend/ | |
| image: ghcr.io/seanmorley15/adventurelog-backend:latest | |
| container_name: adventurelog-backend | |
| restart: unless-stopped | |
| env_file: .env | |
| volumes: | |
| - ${APP_PATH}/media:/code/media/ | |
| networks: | |
| - common-network | |
| networks: | |
| common-network: | |
| external: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| if ($host = trips-be.my-domain.com) { | |
| return 301 https://$host$request_uri; | |
| } | |
| listen 80; | |
| server_name trips-be.my-domain.com; | |
| return 301 https://$host$request_uri; | |
| } | |
| server { | |
| listen 443 ssl; | |
| server_name trips-be.my-domain.com; | |
| include /etc/nginx/conf.d/includes/common.conf; | |
| location / { | |
| proxy_pass http://adventurelog-backend:80; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| if ($host = trips.my-domain.com) { | |
| return 301 https://$host$request_uri; | |
| } | |
| listen 80; | |
| server_name trips.my-domain.com; | |
| return 301 https://$host$request_uri; | |
| } | |
| server { | |
| listen 443 ssl; | |
| server_name trips.my-domain.com; | |
| include /etc/nginx/conf.d/includes/common.conf; | |
| location / { | |
| proxy_pass http://adventurelog-frontend:3000; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment