production compose image

This commit is contained in:
b1ek 2023-03-12 02:03:39 +10:00
parent 888823c9d6
commit 26fd43d893
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,33 @@
version: '3'
services:
server:
build:
context: .
dockerfile: Dockerfile
volumes:
- './:/opt/code'
ports:
- '${APP_PORT}:${APP_PORT}'
env_file: ./.env
environment:
APP_PORT: '${APP_PORT}'
networks:
- homepage
redis:
image: redis:alpine
networks:
- homepage
db:
image: postgres:alpine
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