-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-dev.yml
41 lines (37 loc) · 942 Bytes
/
docker-compose-dev.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
version: "3.7"
services:
comments-db:
image: mysql
container_name: comments-db
restart: always
networks:
- comment-net
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
ports:
- 8081:3306
volumes:
- comments-vol:/var/lib/mysql
adminer:
image: adminer:latest
container_name: comments-adminer
networks:
- comment-net
depends_on:
- comments-db
ports:
- 8080:8080
networks:
comment-net:
name: comment-net
volumes:
comments-vol:
name: comments-vol
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: '/data/docker-volumes/comment-vol/'