-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (39 loc) · 896 Bytes
/
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
version: "3.3"
services:
# Serveur de base de données
db:
build: docker/db
container_name: db_fzoc
restart: always
volumes:
- db_data:/var/lib/mysql
env_file:
- .env
# Serveur d'application datalizr
http:
build: docker/nginx
restart: always
volumes:
- "./www:/usr/local/fzoc/www:rw"
depends_on:
- fpm
env_file:
- .env
ports:
- "127.0.0.1:$EXPOSE_PORT:80"
# Serveur PHP-FPM pour l'interprétation des scripts PHP
fpm:
build: docker/php
restart: always
volumes:
- "./www:/usr/local/fzoc/www:rw"
# - "./ufbt:/usr/local/fzoc/ufbt:rw"
depends_on:
- db
env_file:
- .env
# Volumes
volumes:
www:
ufbt:
db_data: