-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
66 lines (58 loc) · 1.33 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
version: "3.6"
networks:
imaging-network:
name: imaging-network
external: true
services:
imaging:
image: edvinaz/imaging:latest
container_name: imaging
build:
context: ./
dockerfile: .docker/imaging/Dockerfile
volumes:
- ./:/var/www/html
- ./shared:/var/shared
environment:
BASEDIR: /var/www/html
COMPOSER_AUTH: '${COMPOSER_AUTH}'
HOME: /var/www/html
depends_on:
- imaging_db
# user: ${CURRENT_UID}
networks:
- imaging-network
imaging_db:
container_name: imaging_db
image: mariadb:latest
volumes:
- ./.docker/db/storage/volumes/mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=imaging
- MYSQL_USER=imaging
- MYSQL_PASSWORD=imaging
- MYSQL_DATABASE=imaging
- TERM=dumb
ports:
- "23306:3306"
networks:
- imaging-network
imaging_web:
image: edvinaz/imaging_web:latest
container_name: imaging_web
build:
context: ./
dockerfile: .docker/web/Dockerfile
links:
- imaging:php_fpm
ports:
- "8005:80"
environment:
- BASEDIR=/var/www/html
volumes:
- ./.docker/web/nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf
- ./:/var/www/html
networks:
- imaging-network
depends_on:
- imaging