-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
64 lines (61 loc) · 1.5 KB
/
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
services:
webapp:
image: debian:bookworm-slim
container_name: like_the_certain_board
build:
context: ./docker/webapp
dockerfile: Dockerfile
network: host
# tty: true
restart: "no"
entrypoint: "/root/.roswell/local-projects/like-the-certain-board/dockerRun.sh"
depends_on:
- db
expose:
- 8888
volumes:
- ./:/root/.roswell/local-projects/like-the-certain-board/
- ../dat/:/roswell/dat/
- ../kakolog/html/:/roswell/kakolog/html/
- ../kakolog/dat/:/roswell/kakolog/dat/
- ../settings/:/roswell/settings/
db:
image: mysql:latest
container_name: mysql_docker
build:
context: ./docker/mysql
dockerfile: Dockerfile
restart: "no"
environment:
MYSQL_ROOT_PASSWORD: root_pass
MYSQL_DATABASE: mysite
MYSQL_USER: lain
MYSQL_PASSWORD: user_pass
expose:
- 3306
ports:
- 3306:3306
volumes:
- ./docker/mysql/sql:/docker-entrypoint-initdb.d
- ./docker/mysql/conf:/etc/mysql/conf.d
- db-data-store:/var/lib/mysql
- db-log-store:/var/log/mysql
nginx:
image: nginx:latest
container_name: nginx_on_docker
build:
context: ./docker/nginx
dockerfile: Dockerfile
restart: "no"
depends_on:
- webapp
ports:
- 8080:80
- 8081:443
volumes:
- ./docker/nginx/conf:/etc/nginx/conf.d/
- ../keys:/etc/keys/
- ../nginx_log:/var/log/nginx/
volumes:
db-data-store:
db-log-store: