-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompose.yml
44 lines (42 loc) · 1.26 KB
/
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
services:
fromthepage:
# build:
# dockerfile: Containerfile
# context: .
image: docker.io/bencomp/fromthepage-passenger:latest
platform: "linux/amd64"
env_file: ./local.env
environment:
- PASSENGER_APP_ENV=development
depends_on:
- "mysql"
ports:
- "3000:80"
volumes:
- fromthepage_logs:/home/app/fromthepage/log
- fromthepage_tmp:/home/app/fromthepage/tmp
- fromthepage_public_images_working:/home/app/fromthepage/public/images/working
- fromthepage_public_images_uploaded:/home/app/fromthepage/public/images/uploaded
- fromthepage_public_uploads:/home/app/fromthepage/public/uploads
- fromthepage_public_text:/home/app/fromthepage/public/text
# restart: always
mysql:
image: mysql:5.7
platform: "linux/amd64"
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- MYSQL_USER=fromthepage
- MYSQL_PASSWORD=fromthepage
- MYSQL_DATABASE=fromthepage
volumes:
- fromthepage_mysql_data:/var/lib/mysql
- ./data:/docker-entrypoint-initdb.d
restart: always
volumes:
fromthepage_mysql_data:
fromthepage_logs:
fromthepage_tmp:
fromthepage_public_images_working:
fromthepage_public_images_uploaded:
fromthepage_public_uploads:
fromthepage_public_text: