forked from Traewelling/traewelling
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
104 lines (96 loc) · 2.55 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
version: "3.9"
services:
app:
build: .
restart: 'always'
ports:
- "8081:80"
networks:
- internal
env_file:
- .env.docker
environment:
CONTAINER_ROLE: app
# SEED_DB: true
volumes:
- ./app:/var/www/html/app
- ./config:/var/www/html/config
- ./resources:/var/www/html/resources
- ./routes:/var/www/html/routes
- ./storage:/var/www/html/storage
- ./tests:/var/www/html/tests
- ./avatars:/var/www/html/public/uploads/avatars
## Un-comment the following line if you need to deal with frontend code.
## The built assets will be overwritten by whatever is in your host
## system, so run a local `npm run dev` on your host system to compile
## your changed assets. The app container works as the webserver, and the
## scheduler and the queue handler don't need the frontend dependencies
## at this time.
## Please don't commit the un-commenting to keep the dependencies
## on the host computer as small as possible.
#- ./public:/var/www/html/public
scheduler:
build: .
restart: 'always'
networks:
- internal
env_file:
- .env.docker
environment:
CONTAINER_ROLE: scheduler
volumes:
- ./app:/var/www/html/app
- ./config:/var/www/html/config
- ./resources:/var/www/html/resources
- ./routes:/var/www/html/routes
- ./storage:/var/www/html/storage
- ./tests:/var/www/html/tests
- ./avatars:/var/www/html/public/uploads/avatars
queue:
build: .
restart: 'always'
networks:
- internal
env_file:
- .env.docker
environment:
CONTAINER_ROLE: queue
volumes:
- ./app:/var/www/html/app
- ./config:/var/www/html/config
- ./resources:/var/www/html/resources
- ./routes:/var/www/html/routes
- ./storage:/var/www/html/storage
- ./tests:/var/www/html/tests
- ./avatars:/var/www/html/public/uploads/avatars
database:
image: mariadb:10
restart: 'always'
ports:
- "3306:3306"
volumes:
- ./database/docker-container-state:/var/lib/mysql
networks:
- internal
environment:
- TZ=Europe/Berlin
env_file:
- .env.docker
db-rest:
# we are stuck on db-rest version 5,
image: derhuerst/db-rest:5
restart: always
depends_on:
- redis
environment:
REDIS_URL: "redis://redis:6379"
networks:
- internal
redis:
image: redis
restart: always
networks:
- internal
networks:
internal:
external: false