Skip to content

Instantly share code, notes, and snippets.

@Scemist
Last active February 27, 2023 18:29
Show Gist options
  • Save Scemist/001121c975fee8f75cc3eb6ef6e6aa44 to your computer and use it in GitHub Desktop.
Save Scemist/001121c975fee8f75cc3eb6ef6e6aa44 to your computer and use it in GitHub Desktop.
name: appname
networks:
internal:
database:
services:
nginx:
build:
context: .
dockerfile: ./services/nginx/Dockerfile.dev
restart: unless-stopped
ports:
- "8080:80"
- "5173:5173"
networks:
- internal
volumes:
- ./app:/app
php:
build:
context: .
dockerfile: ./services/php/Dockerfile.dev
restart: unless-stopped
networks:
- internal
- database
volumes:
- ./app:/app
vite:
build:
context: .
dockerfile: ./services/vite/Dockerfile.dev
restart: unless-stopped
networks:
- internal
volumes:
- ./app:/app
postgres:
build:
context: .
dockerfile: ./services/postgres/Dockerfile.dev
restart: unless-stopped
networks:
- database
name: appname
networks:
internal:
database:
services:
nginx:
build:
context: .
dockerfile: ./services/nginx/Dockerfile
restart: always
ports:
- "8000:80"
networks:
- internal
volumes_from:
- php
php:
build:
context: .
dockerfile: ./services/php/Dockerfile
restart: always
networks:
- internal
- database
volumes:
- /app
- /data/appname-storage/archive:/app/storage/app/archive
postgres:
build:
context: .
dockerfile: ./services/postgres/Dockerfile
restart: always
networks:
- database
volumes:
- /data/appname-postgres/data:/var/lib/postgresql/data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment