-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (53 loc) · 1.14 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
version: "3.8"
services:
www:
build: .
ports:
- "8001:80"
volumes:
- ./:/var/www/html/
links:
- db
networks:
- default
db:
image: postgres
environment:
POSTGRES_USER: pguser
POSTGRES_PASSWORD: pgpass
POSTGRES_DB: pgdata
volumes:
- db-data:/var/lib/postgresql/data
- ./dump:/docker-entrypoint-initdb.d
networks:
- default
# ports:
# - 5432:5432
# db:
# image: mysql:8.0
# ports:
# - "3306:3306"
# command: --default-authentication-plugin=mysql_native_password
# environment:
# MYSQL_DATABASE: payments
# MYSQL_USER: admin
# MYSQL_PASSWORD: admin
# MYSQL_ROOT_PASSWORD: root
# volumes:
# - ./mysql:/docker-entrypoint-initdb.d
# - ./mysql/config:/etc/mysql/conf.d
# - persistent:/var/lib/mysql
# phpmyadmin:
# image: phpmyadmin/phpmyadmin
# links:
# - db:db
# ports:
# - 8000:80
# environment:
# MYSQL_USER: admin
# MYSQL_PASSWORD: admin
# MYSQL_ROOT_PASSWORD: root
# volumes:
# - persistent:/var/lib/mysql
volumes:
db-data: