-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
50 lines (43 loc) · 886 Bytes
/
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
version: "3.8"
services:
frontend:
image: ugurkontel/phptodo:frontend
ports:
- 3000:80
backend:
image: ugurkontel/phptodo:backend
ports:
- 5000:80
secrets:
- mysql_password
environment:
HTTP_ORIGIN: http://localhost:3000
database:
image: ugurkontel/phptodo:database
environment:
MYSQL_DATABASE: todo_app
MYSQL_USER: todo_admin
MYSQL_PASSWORD_FILE: /run/secrets/mysql_password
MYSQL_RANDOM_ROOT_PASSWORD: 1
secrets:
- mysql_password
volumes:
- mysql-data:/var/lib/mysql
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- 8080:80
environment:
- PMA_HOST=database
- PMA_PORT=3306
depends_on:
- database
networks:
todo-network:
driver: overlay
secrets:
mysql_password:
external: true
volumes:
mysql-data:
driver: local