forked from marianoka/docker-composes-php
-
Notifications
You must be signed in to change notification settings - Fork 1
/
1
51 lines (50 loc) · 1.08 KB
/
1
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
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
- ./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:
image: nginx:alpine
container_name: nginxmk
restart: unless-stopped
tty: true
ports:
- "8080:80"
volumes:
- ./code/:/var/www/html
- ./config/conf.d/:/etc/nginx/conf.d/
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