Skip to content

Commit

Permalink
add pre prod docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeBu committed Oct 9, 2024
1 parent 3f083f0 commit 2353f40
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions docker-compose.preprod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
services:
api:
build:
context: "."
dockerfile: Dockerfile.api
env_file: .env
restart: unless-stopped

web:
build:
context: "."
dockerfile: Dockerfile.web
restart: unless-stopped

nginx:
image: nginx:alpine
ports:
- "8090:80"
volumes:
- ./nginx/:/etc/nginx/conf.d/
depends_on:
- api
- web
restart: unless-stopped

postgres:
image: postgres:16
shm_size: 256m
environment:
POSTGRES_LOG_STATEMENTS: all
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- ./docker-data:/var/lib/postgresql/data

adminer:
image: adminer
ports:
- "8091:8080"

0 comments on commit 2353f40

Please sign in to comment.