2023-03-10 08:39:12 +01:00
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
server:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
volumes:
|
|
|
|
- './:/opt/code'
|
|
|
|
ports:
|
|
|
|
- '9229:9229'
|
|
|
|
env_file: ./.env
|
|
|
|
environment:
|
|
|
|
APP_PORT: '${APP_PORT}'
|
2023-03-19 07:33:33 +01:00
|
|
|
APP_DEBUG: true
|
2023-03-10 08:39:12 +01:00
|
|
|
networks:
|
|
|
|
- homepage
|
|
|
|
redis:
|
|
|
|
image: redis:alpine
|
|
|
|
ports:
|
|
|
|
- '6379:6379'
|
|
|
|
networks:
|
|
|
|
- homepage
|
2023-06-06 06:09:40 +02:00
|
|
|
nginx:
|
|
|
|
image: nginx:alpine
|
|
|
|
ports:
|
|
|
|
- '${APP_PORT}:80'
|
|
|
|
networks:
|
|
|
|
- homepage
|
|
|
|
volumes:
|
|
|
|
- './config/nginx:/etc/nginx'
|
2023-06-06 10:32:32 +02:00
|
|
|
- './public:/var/www:ro'
|
2023-03-10 08:39:12 +01:00
|
|
|
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
|
|
|
|
adminer:
|
|
|
|
image: adminer:standalone
|
|
|
|
ports:
|
|
|
|
- '8001:8080'
|
|
|
|
networks:
|
|
|
|
- homepage
|
|
|
|
environment:
|
|
|
|
ADMINER_DEFAULT_SERVER: postgres
|
|
|
|
ADMINER_DESIGN: rmsoft
|
|
|
|
|
|
|
|
networks:
|
|
|
|
homepage:
|
|
|
|
driver: bridge
|