-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (39 loc) · 986 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
version: '3'
services:
database:
container_name: jumia_database
image: mysql:5.7
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: symfony_docker
MYSQL_USER: symfony
MYSQL_PASSWORD: symfony
ports:
- '4306:3306'
volumes:
- ./mysql:/var/lib/mysql
php-fpm:
container_name: jumia_php-fpm
build:
context: ./.docker/php-fpm
environment:
- APP_ENV=${APP_ENV}
- APP_SECRET=${APP_SECRET}
- DATABASE_URL=${DATABASE_URL}
volumes:
- ./:/var/www
nginx:
container_name: jumia_nginx
build:
context: ./.docker/nginx
volumes:
- ./:/var/www
- ./.docker/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./.docker/nginx/sites/:/etc/nginx/sites-available
- ./.docker/nginx/conf.d/:/etc/nginx/conf.d
- ./.docker/logs:/var/log
depends_on:
- php-fpm
ports:
- "81:81"