-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompose.yml
38 lines (38 loc) · 899 Bytes
/
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
services:
db:
image: mariadb
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: gesticker
MYSQL_USER: gesticker
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
volumes:
- ./db_data:/var/lib/mysql
ports:
- "23306:3306"
app:
build:
context: .
dockerfile: app.Dockerfile
environment:
DATABASE_DRIVER: pdo_mysql
DATABASE_USER: gesticker
DATABASE_PASSWORD: ${MYSQL_PASSWORD}
DATABASE_DATABASE: gesticker
DATABASE_HOST: db
DATABASE_PORT: 3306
UPLOADS_PATH: /app/server/public/uploads
depends_on:
- db
volumes:
- ./server/public/uploads:/app/server/public/uploads
web:
build:
context: .
dockerfile: web.Dockerfile
ports:
- "8080:80"
depends_on:
- app
volumes:
- ./server/public/uploads:/app/server/public/uploads