-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (60 loc) · 1.42 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
62
63
version: "3"
services:
bulder-db:
hostname: bulder-db
image: lscr.io/linuxserver/mariadb:latest
container_name: bulder-db
networks:
- backend
#command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_520_ci
environment:
- MYSQL_ROOT_PASSWORD=asijsadijodaijodsai
- MYSQL_DATABASE=bulder
- MYSQL_USER=budlderuser
- MYSQL_PASSWORD=fdopakakpofsap
- MARIADB_ROOT_PASSWORD=asijsadijodaijodsai
- MARIADB_DATABASE=bulder
- MARIADB_USER=budlderuser
- MARIADB_PASSWORD=fdopakakpofsap
ports:
- 3306:3306
volumes:
- bulder-db:/var/lib/mysql
bulder-dbbackuper:
hostname: bulder-dbbackuper
build:
context: ./dbbackuper
dockerfile: Dockerfile
container_name: bulder-dbbackuper
networks:
- backend
depends_on:
- bulder-db
volumes:
- ./dbbackuper/backup.sh:/app/backup.sh
- ./backup:/backup
environment:
MYSQL_HOST: bulder-db
MYSQL_USER: root
MYSQL_PASSWORD: asijsadijodaijodsai
MYSQL_DATABASE: bulder
bulder-web:
hostname: bulder-web
build:
context: ./webserver
dockerfile: Dockerfile
container_name: bulder-web
networks:
- backend
- frontend
depends_on:
- bulder-db
# volumes:
# - bulder-web:/var/www/html/
ports:
- 7000:80
networks:
backend:
frontend:
volumes:
bulder-db: