-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
64 lines (59 loc) · 1.46 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
services:
database:
image: mariadb:10.7.3
container_name: devscast_telegram_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_telegram_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_telegram_php
restart: unless-stopped
build:
context: ./tools/docker/php
volumes:
- .:/var/www:delegated
depends_on:
- database
php_test:
user: '${USER_ID}:${GROUP_ID}'
container_name: devscast_telegram_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_telegram_databasetest
restart: unless-stopped
environment:
MARIADB_USER: test
MARIADB_ROOT_PASSWORD: test
MARIADB_DATABASE: devscast
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: 'no'
volumes:
database-data:
driver:
local