-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (49 loc) · 1.05 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:
web:
container_name: fuck-application
build:
context: .
dockerfile: '.docker/php/Dockerfile'
image: fuck
restart: unless-stopped
environment:
DB_HOST: db
DB_PASSWORD: secret
DB_DATABASE: database
DB_USERNAME: user
tty: true
depends_on:
- db
volumes:
- ./:/var/www
- .docker/php/local.ini:/usr/local/etc/php/conf.d/local.ini
db:
image: mariadb:latest
container_name: fuck-database
ports:
- "33060:3306"
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: database
MYSQL_USER: user
MYSQL_PASSWORD: secret
volumes:
- dbdata:/var/lib/mysql
nginx:
build:
context: .
dockerfile: '.docker/nginx/Dockerfile'
image: fuck-nginx
container_name: fuck-nginx
restart: unless-stopped
ports:
- "8080:80"
volumes:
- ./:/var/www:delegated
- .docker/nginx/conf.d/:/etc/nginx/conf.d/:delegated
depends_on:
- web
volumes:
dbdata:
driver: local