-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (49 loc) · 1.41 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
version: '3'
services:
notifications-fpm:
build:
context: ./
dockerfile: build/docker/fpm/Dockerfile
container_name: notifications-fpm
depends_on:
- notifications-db
working_dir: /var/www
environment:
- DATABASE_URL=mysql://${DATABASE_USER}:${DATABASE_PASSWORD}@notifications-db:3306/${DATABASE_NAME}?serverVersion=5:7
volumes:
- ./:/var/www
networks:
- notifications-network
notifications-nginx:
build:
context: .
dockerfile: build/docker/nginx/Dockerfile
container_name: notifications-nginx
depends_on:
- notifications-fpm
volumes:
- ./:/var/www
ports:
- "8001:80"
networks:
- notifications-network
notifications-db:
image: mariadb:latest
container_name: notifications-db
ports:
- "3307:3306"
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD="yes"
- MYSQL_DATABASE=${DATABASE_NAME}
- MYSQL_USER=${DATABASE_USER}
- MYSQL_PASSWORD=${DATABASE_PASSWORD}
volumes:
- notifications_db_volume:/var/lib/mysql
networks:
- notifications-network
networks:
notifications-network:
driver: bridge
volumes:
notifications_db_volume:
driver: local