-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (44 loc) · 926 Bytes
/
docker-compose.yml
File metadata and controls
48 lines (44 loc) · 926 Bytes
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
services:
app:
build:
context: .
dockerfile: Dockerfile
image: larabrix
container_name: larabrix-app
restart: unless-stopped
volumes:
- appdata:/var/www
networks:
- larabrix
db:
image: yobasystems/alpine-mariadb
container_name: larabrix-db
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
volumes:
- appdata:/var/www
- dbdata:/var/lib/mysql
networks:
- larabrix
nginx:
image: nginx:alpine
container_name: larabrix-nginx
restart: unless-stopped
ports:
- "127.0.0.1:80:80"
volumes:
- ./docker-compose/nginx:/etc/nginx/conf.d
depends_on:
- app
networks:
- larabrix
networks:
larabrix:
driver: bridge
volumes:
dbdata:
appdata: