-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
115 lines (106 loc) · 2.53 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
version: "3.5"
services:
php:
build:
context: ./
dockerfile: docker/php/php8.dockerfile
container_name: evolved5g_pilot_php
user: "${DOCKER_USER_ID}:${DOCKER_GROUP_ID}" # this is the Laravel user. We need to set it
# this way, so that the permissions are applied correctly.
ports:
- "89:80"
volumes:
- .:/var/www/html
- ~/.composer/auth.json:/root/.composer/auth.json
networks:
- docker_evolved5g_net
db:
build:
context: docker/db
container_name: evolved5g_pilot_db
environment:
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD}
- MYSQL_DATABASE=${DB_DATABASE}
- MYSQL_USER=${DB_USERNAME}
- MYSQL_PASSWORD=${DB_PASSWORD}
ports:
- "3316:3306"
volumes:
- mydata:/var/lib/mysql
networks:
- docker_evolved5g_net
phpmyadmin:
depends_on:
- db
- php
container_name: evolved5g_pilot_phpmyadmin
image: phpmyadmin/phpmyadmin
ports:
- "8089:80"
environment:
MYSQL_USERNAME: ${DB_USERNAME}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
UPLOAD_LIMIT: 128M
PMA_HOST: db
networks:
- docker_evolved5g_net
composer:
container_name: evolved5g_pilot_composer
build:
context: ./docker/utils
dockerfile: composer.dockerfile
args:
DOCKER_GROUP_ID: ${DOCKER_GROUP_ID}
volumes:
- .:/var/www/html
networks:
- docker_evolved5g_net
artisan:
container_name: evolved5g_pilot_artisan
build:
context: ./
dockerfile: docker/php/php8.dockerfile
args:
DOCKER_GROUP_ID: ${DOCKER_GROUP_ID}
volumes:
- .:/var/www/html
networks:
- docker_evolved5g_net
depends_on:
- php
entrypoint: [ "php", "/var/www/html/artisan" ]
npm:
build:
context: .
dockerfile: docker/utils/npm.dockerfile
container_name: evolved5g_pilot_npm
working_dir: /var/www/html
entrypoint: [ "npm" ]
volumes:
- .:/var/www/html
networks:
- docker_evolved5g_net
depends_on:
- php
supervisor:
container_name: supervisor
build:
context: ./
dockerfile: docker/supervisor/Dockerfile.supervisor
restart: unless-stopped
environment:
- APP_ROOT=/var/www/html
- QUEUE_DRIVER=${QUEUE_CONNECTION}
- OPTIONS=${QUEUE_OPTIONS}
- NUM_PROCS=${NUM_PROCS}
networks:
- docker_evolved5g_net
depends_on:
- php
- db
volumes:
mydata:
networks:
docker_evolved5g_net:
external: false
name: docker_evolved5g_net