-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 lines (57 loc) · 1.08 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
version: '3'
services:
db:
build:
context: .
dockerfile: docker/database/Dockerfile
command: --default-authentication-plugin=mysql_native_password
volumes:
- ./db_data:/var/lib/mysql
ports:
- 33306:3306
restart: always
environment:
- MYSQL_ROOT_PASSWORD=hogehoge
- MYSQL_DATABASE=cidr
- MYSQL_USER=cidr
- MYSQL_PASSWORD=cidr
- TZ=Japan
- LANG=ja_JP.UTF-8
container_name: cidr_db
api:
build:
context: .
dockerfile: docker/api/Dockerfile
expose:
- 8000
ports:
- 8013:8000
restart: always
links:
- db
stdin_open: true
privileged: true
environment:
- "TZ=JST-9"
container_name: cidr_api
web:
build:
context: .
dockerfile: docker/web/Dockerfile
expose:
- 80
ports:
- 8012:80
restart: always
links:
- api
stdin_open: true
privileged: true
environment:
- "TZ=JST-9"
container_name: cidr_web
networks:
default:
ipam:
config:
- subnet: 10.250.10.128/25