-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·85 lines (83 loc) · 2.11 KB
/
docker-compose.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
version: '3.7'
networks:
app_network:
external: false
driver: bridge
services:
app_web:
build:
context: .
dockerfile: ./php/DockerFile
container_name: app_web
volumes:
- "./app:/var/www/html"
networks:
- app_network
app_server:
build:
context: .
dockerfile: ./server/DockerFile
container_name: app_server
volumes:
- "./app:/var/www/html"
ports:
# - "53:53/tcp"
# - "53:53/udp"
- "80:80"
- "443:443"
- "8083:8083"
restart: on-failure
dns:
- 127.0.0.1
- 1.1.1.1
cap_add:
- NET_ADMIN
networks:
- app_network
depends_on:
- app_web
# app_gearman:
# build:
# context: .
# dockerfile: ./gearman/DockerFile
# container_name: app_gearman
# volumes:
# - "./app:/var/www/html"
# ports:
# - "4730:4730"
# restart: on-failure
# networks:
# - app_network
app_mysqldb:
image: yobasystems/alpine-mariadb
container_name: app_rdbms
environment:
- MYSQL_DATABASE=appdev
- MYSQL_ROOT_PASSWORD=r
- MYSQL_USER=appdev
- MYSQL_PASSWORD=appdev
ports:
- "3306:3306"
networks:
- app_network
# app_pgsql:
# image: postgres:alpine
# container_name: app_pgsql
# environment:
# - POSTGRES_DB=appdev
# - POSTGRES_USER=appdev
# - POSTGRES_PASSWORD=appdev
# ports:
# - "5432:5432"
# networks:
# - app_network
# app_nosql:
# image: mongo:bionic
# container_name: app_mongodb
# environment:
# - MONGO_INITDB_ROOT_USERNAME=appdev
# - MONGO_INITDB_ROOT_PASSWORD=appdev
# ports:
# - "27017:27017"
# networks:
# - app_network