-
Notifications
You must be signed in to change notification settings - Fork 32
/
docker-compose.yml
55 lines (53 loc) · 1.25 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
54
55
version: "3"
services:
web:
build: .
ports:
- '4567:4567'
networks:
- external_network
- internal_network
depends_on:
- mysql
volumes:
- ./config.properties:/usr/local/etc/config.properties
- smithereen-media:/uploads
restart: always
mysql:
image: mysql:8
environment:
MYSQL_ROOT_PASSWORD: smithereen
MYSQL_DATABASE: smithereen
MYSQL_INITDB_SKIP_TZINFO: 1
networks:
- internal_network
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
volumes:
- smithereen-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:
- smithereen-media:/uploads
restart: always
networks:
- external_network
networks:
external_network:
internal_network:
internal: true
volumes:
smithereen-media:
smithereen-mysql-data: