-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
56 lines (52 loc) · 1.37 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
version: '3.8'
services:
php:
build:
dockerfile: docker/php/Dockerfile
context: .
target: php_prod
image: aristote-php-prod
user: "${UID:-0}:${GID:-0}"
env_file:
- .env.local
environment:
APP_ENV: prod
depends_on:
- postgres
workers:
restart: always
build:
dockerfile: ./docker/php/Dockerfile
context: .
target: php_prod
image: aristote-php-prod
entrypoint: [ '/bin/bash', '/worker-messenger-mq-entrypoint.sh' ]
env_file:
- .env.local
environment:
APP_ENV: prod
depends_on:
- php
nginx:
build:
context: .
dockerfile: docker/nginx/Dockerfile
target: nginx_prod
args:
PHP_DESTINATION: aristote-php-prod
image: aristote-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: api
POSTGRES_PASSWORD: aristote
POSTGRES_DB: aristote-db
POSTGRES_INITDB_ARGS: "--locale-provider=icu --icu-locale=sl-SI"