2023-03-11 17:03:39 +01:00
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
server:
|
2023-03-12 03:22:48 +01:00
|
|
|
restart: always
|
2023-03-11 17:03:39 +01:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
volumes:
|
|
|
|
- './:/opt/code'
|
|
|
|
ports:
|
|
|
|
- '${APP_PORT}:${APP_PORT}'
|
|
|
|
env_file: ./.env
|
|
|
|
environment:
|
|
|
|
APP_PORT: '${APP_PORT}'
|
|
|
|
networks:
|
|
|
|
- homepage
|
|
|
|
redis:
|
2023-03-12 03:22:48 +01:00
|
|
|
restart: always
|
2023-03-11 17:03:39 +01:00
|
|
|
image: redis:alpine
|
|
|
|
networks:
|
|
|
|
- homepage
|
|
|
|
db:
|
2023-03-12 03:22:48 +01:00
|
|
|
restart: always
|
2023-03-11 17:03:39 +01:00
|
|
|
image: postgres:alpine
|
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD: '${DB_PASSWORD}'
|
|
|
|
POSTGRES_USER: '${DB_USERNAME}'
|
|
|
|
POSTGRES_DB: '${DB_DATABASE}'
|
2023-03-12 02:46:21 +01:00
|
|
|
PGDATA: '/var/lib/pgdata/data'
|
2023-03-11 17:03:39 +01:00
|
|
|
volumes:
|
2023-03-12 02:46:21 +01:00
|
|
|
- './data/db:/var/lib/pgdata/data'
|
2023-03-11 17:03:39 +01:00
|
|
|
networks:
|
|
|
|
- homepage
|
|
|
|
|
|
|
|
networks:
|
|
|
|
homepage:
|
|
|
|
driver: bridge
|