forked from devscast/devscast.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
117 lines (106 loc) · 2.62 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
105
106
107
108
109
110
111
112
113
114
115
116
117
version: '3'
services:
database:
image: mariadb:10.7.3
container_name: devscast_community_database
restart: unless-stopped
environment:
MARIADB_USER: root
MARIADB_ROOT_PASSWORD: root
MARIADB_DATABASE: devscast
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: 'no'
volumes:
- database-data:/var/lib/mysql:rw
- ./var:/var/www/var
labels:
com.symfony.server.service-prefix: 'DATABASE'
web:
image: nginx:alpine
container_name: devscast_community_nginx
restart: unless-stopped
ports:
- "8000:80"
volumes:
- .:/var/www:delegated
- ./tools/config/nginx.conf:/etc/nginx/conf.d/default.conf
links:
- php
php:
user: '${USER_ID}:${GROUP_ID}'
container_name: devscast_community_php
restart: unless-stopped
build:
context: ./tools/docker/php
volumes:
- .:/var/www:delegated
depends_on:
- database
redis:
image: redis:6-alpine
container_name: devscast_community_redis
restart: unless-stopped
labels:
com.symfony.server.service-prefix: 'REDIS'
## Development Tools
maildev:
image: mailhog/mailhog
container_name: devscast_community_maildev
ports:
- "1080:8025"
labels:
com.symfony.server.service-prefix: 'MAILER'
adminer:
image: adminer:4.8.1
container_name: devscast_community_adminer
restart: unless-stopped
depends_on:
- database
environment:
APP_ENV: dev
ADMINER_DESIGN: pepa-linha
ADMINER_DEFAULT_SERVER: database
ports:
- "8082:8080"
node:
container_name: devscast_community_node
restart: unless-stopped
user: '${USER_ID}:${GROUP_ID}'
build:
context: ./tools/docker/node
command: yarn run watch
working_dir: /home/node/app
volumes:
- ./:/home/node/app
ports:
- "3000:3000"
php_test:
user: '${USER_ID}:${GROUP_ID}'
container_name: devscast_community_phptest
restart: unless-stopped
build:
context: ./tools/docker/php
volumes:
- .:/var/www:delegated
depends_on:
- database_test
database_test:
image: mariadb:10.7.3
container_name: devscast_community_databasetest
restart: unless-stopped
environment:
MARIADB_USER: test
MARIADB_ROOT_PASSWORD: test
MARIADB_DATABASE: devscast
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: 'no'
redis_gui:
image: rediscommander/redis-commander
container_name: devscast_community_redisgui
restart: unless-stopped
environment:
- REDIS_HOSTS=local:redis:6379
ports:
- "8081:8081"
volumes:
database-data:
driver:
local