You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
feo-homepage/docker-compose.yml

51 lines
991 B

services:
backend:
build:
context: .
args:
UID: "${UID}"
GID: "${GID}"
entrypoint:
- "daphne"
command: "-b 0.0.0.0 feo_homepage.asgi:application"
# deploy:
# mode: replicated
# replicas: 6
# endpoint_mode: vip
volumes:
- .:/app
- userhome:/home/runuser
env_file:
- .env
environment:
PYTHONDONTWRITEBYTECODE: 1
DJANGO_SETTINGS_MODULE: feo_homepage.settings.dev
depends_on:
- db
restart: unless-stopped
manage:
build:
context: .
args:
UID: "${UID}"
GID: "${GID}"
entrypoint:
- "./manage.py"
command: "collectstatic --no-input"
volumes:
- .:/app
- userhome:/home/runuser
env_file:
- .env
depends_on:
- db
environment:
PYTHONDONTWRITEBYTECODE: 1
DJANGO_SETTINGS_MODULE: feo_homepage.settings.dev
volumes:
userhome:
driver: local
dbdata:
driver: local