-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
70 lines (65 loc) · 1.34 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
version: "3.8"
services:
# Web Server Service
nginx:
image: nginx:alpine
container_name: nginx
ports:
- "8080:80"
volumes:
- ./src:/var/www
- ./nginx/conf.d/:/etc/nginx/conf.d/
depends_on:
- app
- db
#Database Service
db:
image: mysql
container_name: mysql
volumes:
- ./mysql/data:/var/lib/mysql
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: blog
MYSQL_ROOT_PASSWORD: password
# db:
# image: postgres
# container_name: postgres
# volumes:
# - ./postgresql:/var/lib/postgresql/data
# ports:
# - "5432:5432"
# environment:
# POSTGRES_DB: blog
# POSTGRES_USER: root
# POSTGRES_PASSWORD: password
# Application Service
app:
container_name: blog
build:
context: ./php
dockerfile: Dockerfile
volumes:
- ./src:/var/www
ports:
- "9000:9000"
working_dir: /var/www
#phpMyAdmin Service
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin
ports:
- "3400:80"
depends_on:
- db
# pgadmin:
# image: dpage/pgadmin4
# container_name: pgAdmin
# ports:
# - "5050:80"
# depends_on:
# - db
# environment:
# PGADMIN_DEFAULT_EMAIL: ryanmwakio6@gmail.com
# PGADMIN_DEFAULT_PASSWORD: password