-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
45 lines (38 loc) · 895 Bytes
/
docker-compose.yaml
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
version: '3.8'
services:
db:
image: mysql:5.7
volumes:
- /opt/mysql:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: UQdYSMUy1hS9Wc7v4V39Lmy9r7eWjrb9sfasfs # Need to be changed later
MYSQL_DATABASE: t24-wordpress
MYSQL_USER: admin-t24-wordpress
MYSQL_PASSWORD: UQdYSMUy1hS9Wgfdsgdsc # Need to be changed later
app-1:
image: app-1
build:
context: ./app-1
dockerfile: Dockerfile
depends_on:
- db
- reverseproxy
restart: always
app-2:
image: app-2
build:
context: ./app-2
dockerfile: Dockerfile
depends_on:
- db
- reverseproxy
restart: always
reverseproxy:
image: reverseproxy
build:
context: ./reverseproxy
dockerfile: Dockerfile
ports:
- 80:80
restart: always