forked from grishka/Smithereen
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (52 loc) · 1.34 KB
/
docker-compose.yml
File metadata and controls
53 lines (52 loc) · 1.34 KB
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:
build: .
ports:
- '4567:4567'
networks:
- external_network
- internal_network
depends_on:
- mysql
volumes:
- ./config.properties:/usr/local/etc/config.properties
# These need to be somewhere accessible by the web server.
# Change to whatever your web root is if it's not /var/www.
- /var/www/s/uploads:/opt/smithereen/uploads
- /var/www/s/media_cache:/opt/smithereen/media_cache
restart: always
mysql:
image: mysql:5
environment:
MYSQL_ROOT_PASSWORD: smithereen
MYSQL_DATABASE: smithereen
networks:
- internal_network
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
volumes:
- ./mysql-data:/var/lib/mysql
- ./schema.sql:/docker-entrypoint-initdb.d/schema.sql
restart: always
imgproxy:
image: darthsim/imgproxy:latest
ports:
- '4560:8080'
environment:
IMGPROXY_PATH_PREFIX: "/i"
IMGPROXY_ALLOWED_SOURCES: "local://"
IMGPROXY_LOCAL_FILESYSTEM_ROOT: "/uploads"
# See README or config_docker.properties for how to generate these.
# Must match config, otherwise you won't be seeing any memes in the newsfeed.
IMGPROXY_KEY: GENERATE YOUR OWN
IMGPROXY_SALT: GENERATE YOUR OWN
volumes:
- /var/www/s:/uploads
restart: always
networks:
- external_network
networks:
external_network:
internal_network:
internal: true