38 lines
707 B
YAML
38 lines
707 B
YAML
version: '3'
|
|
services:
|
|
server:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
volumes:
|
|
- './:/opt/code'
|
|
ports:
|
|
- '${APP_PORT}:${APP_PORT}'
|
|
- '9229:9229'
|
|
env_file: ./.env
|
|
environment:
|
|
APP_PORT: '${APP_PORT}'
|
|
networks:
|
|
- homepage
|
|
redis:
|
|
image: redis:alpine
|
|
ports:
|
|
- '6379:6379'
|
|
networks:
|
|
- homepage
|
|
db:
|
|
image: postgres:alpine
|
|
ports:
|
|
- '5432:5432'
|
|
environment:
|
|
POSTGRES_PASSWORD: '${DB_PASSWORD}'
|
|
POSTGRES_USER: '${DB_USERNAME}'
|
|
POSTGRES_DB: '${DB_DATABASE}'
|
|
volumes:
|
|
- './data/db:/var/lib/postgresql'
|
|
networks:
|
|
- homepage
|
|
|
|
networks:
|
|
homepage:
|
|
driver: bridge |