Split into docker containers
This commit is contained in:
@@ -1,11 +1,69 @@
|
||||
version: '3.3'
|
||||
|
||||
services:
|
||||
citizen:
|
||||
tty: true
|
||||
db:
|
||||
image: postgis/postgis:12-3.1-alpine
|
||||
ports:
|
||||
- "5432:5432"
|
||||
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
|
||||
- "./db/data:/var/lib/postgresql/data"
|
||||
environment:
|
||||
- "POSTGRES_PASSWORD=postgres"
|
||||
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
|
||||
- ./patches/front/app.config.ts:/home/appuser/citizen/frontend/src/conf/app.config.ts
|
||||
- ./dist/browser:/home/appuser/citizen/frontend/dist/browser
|
||||
ports:
|
||||
- "4000:4000"
|
||||
- "4200:4200"
|
||||
command: npm run serve:ssr
|
||||
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
|
||||
|
||||
pgweb:
|
||||
image: sosedoff/pgweb
|
||||
ports:
|
||||
- 8081:8081
|
||||
apache:
|
||||
build:
|
||||
context: ./apache
|
||||
image: registry.gitlab.com/champs-libres/geonature-citizen/apache
|
||||
ports:
|
||||
- "8080:80"
|
||||
volumes:
|
||||
- ./dist/browser:/home/appuser/citizen/frontend/dist/browser
|
||||
- ./apache/my-httpd.conf /usr/local/apache2/conf/httpd.conf
|
Reference in New Issue
Block a user