forked from abneetwats24/MyBlog
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (51 loc) · 1.01 KB
/
Copy pathdocker-compose.yml
File metadata and controls
56 lines (51 loc) · 1.01 KB
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.3"
services:
db:
image: mariadb
restart: unless-stopped
env_file:
- .env
container_name: blog-db
environment:
MYSQL_DATABASE: ${MYSQL_DB}
MYSQL_ROOT_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_USER: ${MYSQL_USER}
volumes:
- db-data:/var/lib/mysql
networks:
- blog-net
healthcheck:
test: "exit 0"
phpmyadmin:
image: phpmyadmin
container_name: blog-phpmyadmin
links:
- db
ports:
- 8181:80
environment:
PMA_HOST: db
MYSQL_USERNAME: ${MYSQL_USER}
MYSQL_ROOT_PASSWORD: ${MYSQL_PASSWORD}
networks:
- blog-net
backend:
image: '${DOCKER_IMAGE_BACKEND?Variable not set}:${TAG-latest}'
depends_on:
db:
condition: service_healthy
env_file:
- .env
ports:
- 8800:8800
build:
context: ./
dockerfile: Dockerfile
networks:
- blog-net
volumes:
db-data:
networks:
blog-net:
driver: bridge