docker-scripts/linux/ecosystem/electron-release-server/docker-compose.yml.example
2021-09-21 20:44:37 +03:00

30 lines
740 B
Plaintext

version: '2'
services:
web:
build: .
environment:
APP_USERNAME: username
APP_PASSWORD: password
DB_HOST: db
DB_PORT: 5432
DB_USERNAME: releaseserver
DB_NAME: releaseserver
DB_PASSWORD: secret
TOKEN_SECRET: change_me_in_production
APP_URL: 'localhost:5000'
ASSETS_PATH: '/usr/src/electron-release-server/releases'
depends_on:
- db
ports:
- '5000:80'
entrypoint: ./scripts/wait.sh db:5432 -- npm start
volumes:
- ./releases:/usr/src/electron-release-server/releases
db:
image: postgres:11
environment:
POSTGRES_PASSWORD: secret
POSTGRES_USER: releaseserver
volumes:
- ./postgresql:/var/lib/postgresql/data