-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
51 lines (47 loc) · 1.16 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
version: "3"
services:
app:
build:
args:
user: javi
uid: 1000
context: .
dockerfile: Dockerfile
image: javi98/laravel-server-juegos-api:1.0.0
container_name: laravel-server-juegos-api-app
restart: unless-stopped
working_dir: /var/www/
volumes:
- ./:/var/www
- /var/www/vendor
- ./docker-config/php/php.ini:/usr/local/etc/php/conf.d/zzz-custom.ini
depends_on:
- db
db:
image: mariadb:11.2.2
container_name: laravel-server-juegos-api-db
restart: unless-stopped
environment:
MARIADB_DATABASE: ${DB_DATABASE}
MARIADB_USER: ${DB_USERNAME}
MARIADB_ROOT_PASSWORD: ${DB_PASSWORD}
ports:
- "${DB_PORT}:3306"
volumes:
- db-data:/var/lib/mysql
- ./docker-config/mysql:/docker-entrypoint-initdb.d
nginx:
image: nginx:alpine
container_name: laravel-server-juegos-api-web
restart: unless-stopped
ports:
- "8000:80"
volumes:
- ./:/var/www
- ./docker-config/nginx:/etc/nginx/conf.d
networks:
laravel-server-juegos-api:
driver: bridge
# driver: host # laravel-client-juegos-api
volumes:
db-data: