-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-composemk.yml
104 lines (104 loc) · 2.55 KB
/
docker-composemk.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
version: '3'
services:
#PHP App
app:
build:
context: .
dockerfile: config/dockerfile-oracle
image: dnm/php:7.4-fpm-alpine_oracle
container_name: php_app
restart: unless-stopped
tty: true
environment:
SERVICE_NAME: app
SERVICE_TAGS: dev
working_dir: /var/www/html
volumes:
- ./code/:/var/www/html
#- /var/www/blog:/var/www/html
- ./config/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
- ./tns_desa:/home/tns_desa
labels:
- "constraint:node==node-1"
networks:
- devnet
app_php56:
build:
context: .
dockerfile: config/dockerfile56-alpine #dockerfile-oracle-56
image: dnm/php:5.6-fpm-debian_oracle
container_name: php_app56
restart: unless-stopped
tty: true
environment:
SERVICE_NAME: app
SERVICE_TAGS: dev
working_dir: /var/www/html
volumes:
- ./code/:/var/www/html
- ./config/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
- ./tns_desa:/home/tns_desa
labels:
- "constraint:node==node-1"
networks:
- devnet
app_php81:
build:
context: .
dockerfile: config/dockerfile-php8 #dockerfile-oracle-56
image: dnm/php:8.1-fpm-alpine
container_name: php_app81
restart: unless-stopped
tty: true
environment:
SERVICE_NAME: app81
SERVICE_TAGS: dev
#- DATABASE_URL='mysql://homestead:[email protected]:3306/homestead'
working_dir: /var/www/html
volumes:
- ./code/:/var/www/html
#- /var/www/blog:/var/www/html
- ./config/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
- ./tns_desa:/home/tns_desa
labels:
- "constraint:node==node-1"
networks:
- devnet
#Nginx Service
nginxmk:
#build:
# context: .
#dockerfile: config/docker-nginxalpine #dockerfile-oracle-56
#image: nginx:alpine
image: nginx_extras:latest
container_name: nginxmk
restart: unless-stopped
tty: true
ports:
- "8080:80"
volumes:
- ./code/:/var/www/html
#- /var/www/blog:/var/www/html
- ./nginx.conf:/etc/nginx/nginx.conf
- ./config/conf.d/:/etc/nginx/conf.d/
networks:
- devnet
deploy:
mode: replicated
replicas: 6
labels:
- "constraint:node==node-1"
# restart_policy:
#condition: on-failure
# deploy:
#mode: replicated
#replicas: 2
# endpoint_mode: vip
#Docker Networks
#networks:
# labnet:
# external:
# name: my-network
networks:
devnet:
driver: overlay