This repository has been archived by the owner on Feb 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathdocker-compose.deploy.yml
48 lines (48 loc) · 1.82 KB
/
docker-compose.deploy.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
# example docker-compose for push/build for production release
# this file only require CONTAINER_REGISTRY_BASE and optional IMAGE_TAG environment variable.
version: "3.7"
x-cache-from:
- &ergonode-cache-from
cache_from:
- ${CONTAINER_REGISTRY_BASE:-ergonode}/nginx:latest
- ${CONTAINER_REGISTRY_BASE:-ergonode}/php:latest
- ${CONTAINER_REGISTRY_BASE:-ergonode}/nuxtjs:latest
- ${CONTAINER_REGISTRY_BASE:-ergonode}/docsify:latest
- ${CONTAINER_REGISTRY_BASE:-ergonode}/rabbitmq:latest
- ${CONTAINER_REGISTRY_BASE:-ergonode}/haproxy:latest
services:
php:
build:
context: "./"
target: php_production
<<: *ergonode-cache-from
image: ${CONTAINER_REGISTRY_BASE:?Missing mandatory value for CONTAINER_REGISTRY_BASE}/php:${IMAGE_TAG:-latest}
nuxtjs:
build:
context: "./"
target: nuxtjs_production
<<: *ergonode-cache-from
image: ${CONTAINER_REGISTRY_BASE:?Missing mandatory value for CONTAINER_REGISTRY_BASE}/nuxtjs:${IMAGE_TAG:-latest}
nginx:
build:
context: "./"
target: nginx
<<: *ergonode-cache-from
image: ${CONTAINER_REGISTRY_BASE:?Missing mandatory value for CONTAINER_REGISTRY_BASE}/nginx:${IMAGE_TAG:-latest}
postgres:
build:
context: "./"
target: postgres
<<: *ergonode-cache-from
image: ${CONTAINER_REGISTRY_BASE:?Missing mandatory value for CONTAINER_REGISTRY_BASE}/postgres:${IMAGE_TAG:-latest}
haproxy:
build:
context: "./"
target: haproxy
image: ${CONTAINER_REGISTRY_BASE:?Missing mandatory value for CONTAINER_REGISTRY_BASE}/haproxy:${IMAGE_TAG:-latest}
rabbitmq:
build:
context: "./"
target: rabbitmq-management
<<: *ergonode-cache-from
image: ${CONTAINER_REGISTRY_BASE:?Missing mandatory value for CONTAINER_REGISTRY_BASE}/rabbitmq:${IMAGE_TAG:-latest}