forked from covex-nn/docker-workflow-symfony
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-deploy.yml
55 lines (49 loc) · 1.12 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
49
50
51
52
53
54
55
version: "2.1"
services:
nginx:
image: "${CI_NGINX_IMAGE_WITH_TAG}"
ports:
- "80"
restart: always
networks:
nw_internal:
nw_external:
ipv4_address: ${NETWORK_IP}
depends_on:
mysql:
condition: service_healthy
volumes:
- "assets:/srv/a:ro"
- "assets:/srv/b:ro"
- "assets:/srv/storage:ro"
labels:
docker-gen.host: ${SERVER_NAME}
php:
extends:
file: docker-common.yml
service: php
image: "${CI_APP_IMAGE_WITH_TAG}"
networks:
- nw_internal
restart: always
volumes:
- "assets:/srv/a:rw"
- "assets:/srv/b:rw"
- "assets:/srv/storage:rw"
spare:
extends: php
mysql:
extends:
file: docker-common.yml
service: mysql
restart: always
networks:
- nw_internal
volumes:
database:
assets:
networks:
nw_external:
external:
name: ${NETWORK_NAME}
nw_internal: