biommap/docker-compose.override.yml

88 lines
2.8 KiB
YAML
Raw Normal View History

2021-03-26 14:46:48 +00:00
version: '3.3'
services:
2021-05-31 13:42:58 +00:00
db:
image: postgis/postgis:12-3.1-alpine
ports:
- "5432:5432"
2021-05-31 13:58:46 +00:00
volumes:
2021-06-02 08:59:25 +00:00
- "pg-data:/var/lib/postgresql/data"
2021-05-31 13:58:46 +00:00
environment:
- "POSTGRES_PASSWORD=postgres"
citizen:
tty: true
volumes:
- ./vendor/GeoNature-citizen/frontend:/home/appuser/citizen/frontend
- ./vendor/GeoNature-citizen/backend:/home/appuser/citizen/backend
- ./restart.sh:/home/appuser/citizen/install/restart.sh
- ./patches/frontend/src/conf:/home/appuser/citizen/frontend/src/conf
- ./patches/frontend/src/assets:/home/appuser/citizen/frontend/src/assets
2021-05-31 13:58:46 +00:00
ports:
- "8888:80"
2021-05-31 13:42:58 +00:00
citizen-front:
build:
dockerfile: ./Dockerfile-front
context: .
image: registry.gitlab.com/champs-libres/geonature-citizen/front
volumes:
- ./patches/settings.ini:/home/appuser/citizen/config/settings.ini
2021-05-31 14:15:29 +00:00
- ./patches/frontend/src/conf:/home/appuser/citizen/frontend/src/conf
- ./patches/frontend/src/assets:/home/appuser/citizen/frontend/src/assets
- ./patches/frontend/server.ts:/home/appuser/citizen/frontend/server.ts
- ./dist:/home/appuser/citizen/frontend/dist
# re files installed by npm install
- ./node_modules:/home/appuser/citizen/frontend/node_modules
2021-05-31 13:42:58 +00:00
ports:
- "4000:4000"
command: npm run serve:ssr
environment:
# avoid goodle analytics question
- "NG_CLI_ANALYTICS=false"
2021-05-31 13:42:58 +00:00
citizen-back:
build:
dockerfile: ./Dockerfile-back
context: .
image: registry.gitlab.com/champs-libres/geonature-citizen/back
volumes:
- ./patches/settings.ini:/home/appuser/citizen/config/settings.ini
- ./patches/back/default_config.toml:/home/appuser/citizen/config/default_config.toml
- ./patches/back/wsgi.py:/home/appuser/citizen/backend/wsgi.py
- ./patches/back/server.py:/home/appuser/citizen/backend/server.py
ports:
- "5002:5002"
command: python wsgi.py
taxhub:
build:
dockerfile: ./Dockerfile-taxhub
context: .
image: registry.gitlab.com/champs-libres/geonature-citizen/taxhub
ports:
- "5000:5000"
volumes:
- ./patches/taxhub/config.py:/home/appuser/taxhub/config.py
- ./patches/taxhub/server.py:/home/appuser/taxhub/server.py
- ./patches/taxhub/install_db.sh:/home/appuser/taxhub/install_db.sh
- ./patches/taxhub/settings.ini:/home/appuser/taxhub/settings.ini
command: python server.py
2021-06-02 08:59:25 +00:00
media:
build:
context: .
dockerfile: ./media/Dockerfile
image: registry.gitlab.com/champs-libres/geonature-citizen/media
2021-05-31 13:42:58 +00:00
ports:
2021-06-02 08:59:25 +00:00
- "8082:80"
2021-05-31 13:42:58 +00:00
apache:
build:
context: ./apache
dockerfile: ./Dockerfile
2021-05-31 13:42:58 +00:00
image: registry.gitlab.com/champs-libres/geonature-citizen/apache
ports:
- "8080:80"
2021-06-02 08:59:25 +00:00
pgweb:
image: sosedoff/pgweb
ports:
- 8081:8081
volumes:
pg-data: