Skip to content

Instantly share code, notes, and snippets.

@EliseiNicolae
Last active March 19, 2022 17:36
Show Gist options
  • Save EliseiNicolae/0b3b5a6b369a04ac92e0d35bbad739f6 to your computer and use it in GitHub Desktop.
Save EliseiNicolae/0b3b5a6b369a04ac92e0d35bbad739f6 to your computer and use it in GitHub Desktop.
version: '3.1'
services:
app_staging:
restart: unless-stopped
build:
context: ./staging
dockerfile: Dockerfile
command: npm run start
app_production:
restart: unless-stopped
build:
context: ./production
dockerfile: Dockerfile
command: npm run start
nginx:
image: nginx:alpine
restart: unless-stopped
tty: true
ports:
- "80:80"
- "443:443"
volumes:
- ./secrets/ssl:/etc/ssl/
- ./secrets/nginx:/etc/nginx/conf.d/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment