version: "3.3" networks: vnet-redmine: external: name: vnet-redmine volumes: redmine_db: external: true redmine_files: external: true services: redmine-db: image: postgres:13.3-alpine restart: unless-stopped environment: - POSTGRES_PASSWORD=db_password - POSTGRES_USER=redmine - POSTGRES_DB=redmine networks: - vnet-redmine volumes: # Volume de stockage indépendant pour les fichiers de base de données - type: volume source: redmine_db target: /var/lib/postgresql/data read_only: false redmine: image: redmine:4.2-alpine depends_on: - redmine-db restart: unless-stopped ports: - 8080:3000 environment: - REDMINE_DB_POSTGRES=redmine-db - REDMINE_DB_USERNAME=redmine - REDMINE_DB_PASSWORD=db_password - REDMINE_SECRET_KEY_BASE=redminesecretkey networks: - vnet-redmine volumes: # Volume de stockage indépendant pour les données utilisateurs - type: volume source: redmine_files target: /usr/src/redmine/files read_only: false