forked from reload/os2display-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.release.yml
43 lines (39 loc) · 1.12 KB
/
docker-compose.release.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
# Main docker-compose file for the "release mode"
# When in release mode we hook a admin_release image up to nginx/fpm instead
# of a local development environment.
version: "3.7"
services:
# Ensure we don't start any services that dependes on admin_release to be
# populated too early.
admin-nginx:
depends_on:
- middleware
- search
- admin_release
environment:
VIRTUAL_HOST: admin.${DOCKER_BASE_DOMAIN}
SYMFONY_ENV: "prod"
SYMFONY_DEBUG: "0"
admin-php:
depends_on:
- admin_release
environment:
PHP_IDE_CONFIG: "serverName=admin.${DOCKER_BASE_DOMAIN}"
SYMFONY_ENV: "prod"
SYMFONY_DEBUG: "0"
admin-cron:
depends_on:
- admin_release
environment:
SYMFONY_ENV: "prod"
SYMFONY_DEBUG: "0"
# Contains the latest source-release.
# It will get admin-release mounted as the first container, and copy the
# release into it.
admin_release:
image: ${MAIN_IMAGE_REPOSITORY}/os2display-admin-release:${ADMIN_RELEASE_TAG}
volumes:
- admin-release:/release
command: /opt/init-copy-source.sh
volumes:
admin-release: