-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
67 lines (61 loc) · 1.36 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
64
65
66
67
version: "2.3"
services:
db:
image: mysql:5.7
volumes:
- db-data:/var/lib/mysql
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- MYSQL_DATABASE=${DATABASE_NAME}
- MYSQL_USER=${DATABASE_USER}
- MYSQL_PASSWORD=${DATABASE_PASSWORD}
restart: always
db-backup:
image: selim13/automysqlbackup
volumes:
- "./docker/db-backup:/backup"
environment:
USERNAME: ${DATABASE_USER}
PASSWORD: ${DATABASE_PASSWORD}
DBHOST: db
CRON_SCHEDULE: "0 0 * * *"
depends_on:
- db
restart: always
phpmyadmin:
image: phpmyadmin/phpmyadmin
depends_on:
- db
environment:
- PMA_HOST=db
ports:
- 127.0.0.1:10102:80
restart: always
upont-back:
image: quay.io/kiclubinfo/upont-back:${TAG:-latest}
volumes:
- "./docker/upont-back/jwt:/app/jwt:ro"
- "./docker/upont-back/spool:/app/mail-spool:rw"
- "./docker/db-backup:/app/db-backup:ro"
- upont-uploads:/app/public/uploads:rw
depends_on:
- db
environment:
- DATABASE_HOST=db
env_file:
- .env
restart: always
upont-front:
image: quay.io/kiclubinfo/upont-front:${TAG:-latest}
volumes:
- upont-uploads:/upont/uploads:ro
depends_on:
- upont-back
ports:
- 127.0.0.1:10101:80
restart: always
volumes:
db-data:
driver: local
upont-uploads:
driver: local