-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
55 lines (51 loc) · 1.09 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: "2"
services:
# db:
# image: mysql:5.6
# # container_name: test-mysql
# # restart: always
# # ports:
# # - "3306:3306"
# volumes:
# - ./_db:/var/lib/mysql
# command: [mysqld, --character-set-server=utf8mb4, --collation-server=utf8mb4_unicode_ci]
# environment:
# MYSQL_USER: "root"
# MYSQL_PASSWORD: "root"
# MYSQL_ROOT_PASSWORD: "root"
# MYSQL_DATABASE: calendar
# networks:
# - app-calendar
#
# db-admin1:
# image: phpmyadmin/phpmyadmin:4.6
# container_name: db-admin
# ports:
# - "8082:80"
# environment:
# MYSQL_USER: "root"
# MYSQL_PASSWORD: "root"
# MYSQL_ROOT_PASSWORD: "root"
# MYSQL_DATABASE: calendar
# PMA_HOST: db
# networks:
# - app-calendar
calendar:
build: .
volumes:
- .:/work
working_dir: /work
# command:
ports:
- 8080:8090
environment:
- DB_HOST=db
- DB_NAME=calendar
- DB_USER=root
- DB_PASSWORD=root
- DEBUG=True
networks:
- app-calendar
networks:
app-calendar:
external: true