-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
41 lines (38 loc) · 1.03 KB
/
docker-compose.prod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
version: '3.8'
services:
php:
build:
dockerfile: docker/php/Dockerfile
context: .
target: php_prod
image: aristote-front-php-prod
user: "${UID:-0}:${GID:-0}"
env_file:
- .env.local
environment:
APP_ENV: prod
depends_on:
- postgres
nginx:
build:
context: .
dockerfile: docker/nginx/Dockerfile.prod
target: nginx
args:
PHP_DESTINATION: aristote-front-php-prod
image: aristote-front-nginx-prod
environment:
PHP_BACKEND: php
depends_on:
- php
ports:
- "8080:80"
- "443:443"
postgres:
image: postgres:15-alpine
restart: on-failure
environment:
POSTGRES_USER: aristote-front
POSTGRES_PASSWORD: aristote-front
POSTGRES_DB: aristote-front-db
POSTGRES_INITDB_ARGS: "--locale-provider=icu --icu-locale=sl-SI"