- new `EXTRA_FILES` docker build args to specify directory to be copied at
/extra
- run `${SERVICE}/entrypoint.sh` as docker entry point
- added src/empty folder to so if EXTRA_FILES isn't set => use empty
folder (since no conditional COPY)
51 lines
1.2 KiB
YAML
51 lines
1.2 KiB
YAML
networks:
|
|
transcendance-network:
|
|
driver: bridge
|
|
services:
|
|
#
|
|
# The "entry point" as in it does all of this:
|
|
# - serve files (images, static files, video)
|
|
# - redirect request to appropirate service (reverse proxy)
|
|
# - be the one that handles TLS/SSL (basically HTTPS)
|
|
# - other stuff I don't know yet
|
|
nginx:
|
|
build: ./nginx
|
|
container_name: nginx
|
|
restart: always
|
|
networks:
|
|
- transcendance-network
|
|
ports:
|
|
- '8888:443'
|
|
volumes:
|
|
# if you need to share files with nginx, you do it here.
|
|
- images-volume:/volumes/icons
|
|
# - static-volume:/volumes/static
|
|
environment:
|
|
# this can stay the same for developpement. This is an alias to `localhost`
|
|
- NGINX_DOMAIN=local.maix.me
|
|
|
|
###############
|
|
# ICONS #
|
|
###############
|
|
icons:
|
|
build:
|
|
context: ./src/
|
|
args:
|
|
- SERVICE=icons
|
|
#- EXTRA_FILES=icons/extra
|
|
container_name: icons
|
|
restart: always
|
|
networks:
|
|
- transcendance-network
|
|
volumes:
|
|
- images-volume:/store
|
|
- sqlite-volume:/database
|
|
environment:
|
|
- USER_ICONS_STORE=/store
|
|
- DATABASE_DIR=/database
|
|
|
|
|
|
volumes:
|
|
images-volume:
|
|
sqlite-volume:
|
|
static-volume:
|