2019-12-03 03:04:59 +01:00
|
|
|
version: '3'
|
|
|
|
volumes:
|
|
|
|
postgres_data: {}
|
|
|
|
elastic_data: {}
|
|
|
|
|
|
|
|
services:
|
|
|
|
app:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./docker/app/Dockerfile
|
|
|
|
environment:
|
|
|
|
- MIX_ENV=dev
|
2020-05-28 01:39:33 +02:00
|
|
|
- PGPASSWORD=postgres
|
2020-10-26 22:01:29 +01:00
|
|
|
- ANONYMOUS_NAME_SALT=2fmJRo0OgMFe65kyAJBxPT0QtkVes/jnKDdtP21fexsRqiw8TlSY7yO+uFyMZycp
|
|
|
|
- HCAPTCHA_SECRET_KEY=0x0000000000000000000000000000000000000000
|
|
|
|
- HCAPTCHA_SITE_KEY=10000000-ffff-ffff-ffff-000000000001
|
|
|
|
- PASSWORD_PEPPER=dn2e0EpZrvBLoxUM3gfQveBhjf0bG/6/bYhrOyq3L3hV9hdo/bimJ+irbDWsuXLP
|
|
|
|
- TUMBLR_API_KEY=fuiKNFp9vQFvjLNvx4sUwti4Yb5yGutBN4Xh10LXZhhRKjWlV4
|
|
|
|
- OTP_SECRET_KEY=Wn7O/8DD+qxL0X4X7bvT90wOkVGcA90bIHww4twR03Ci//zq7PnMw8ypqyyT/b/C
|
2022-02-08 04:12:40 +01:00
|
|
|
- ADVERT_FILE_ROOT=adverts
|
|
|
|
- AVATAR_FILE_ROOT=avatars
|
|
|
|
- BADGE_FILE_ROOT=badges
|
|
|
|
- IMAGE_FILE_ROOT=images
|
|
|
|
- TAG_FILE_ROOT=tags
|
2020-10-26 22:01:29 +01:00
|
|
|
- AVATAR_URL_ROOT=/avatars
|
|
|
|
- ADVERT_URL_ROOT=/spns
|
|
|
|
- IMAGE_URL_ROOT=/img
|
2022-02-11 01:17:53 +01:00
|
|
|
- BADGE_URL_ROOT=/badge-img
|
|
|
|
- TAG_URL_ROOT=/tag-img
|
2020-10-26 22:01:29 +01:00
|
|
|
- ELASTICSEARCH_URL=http://elasticsearch:9200
|
|
|
|
- REDIS_HOST=redis
|
|
|
|
- DATABASE_URL=ecto://postgres:postgres@postgres/philomena_dev
|
2020-11-05 22:15:38 +01:00
|
|
|
- CDN_HOST=localhost
|
2020-10-26 22:01:29 +01:00
|
|
|
- MAILER_ADDRESS=noreply@philomena.local
|
|
|
|
- START_ENDPOINT=true
|
2021-09-23 00:03:06 +02:00
|
|
|
- SITE_DOMAINS=localhost
|
2022-02-06 19:27:01 +01:00
|
|
|
- S3_SCHEME=http
|
|
|
|
- S3_HOST=files
|
|
|
|
- S3_PORT=80
|
|
|
|
- S3_BUCKET=philomena
|
|
|
|
- AWS_ACCESS_KEY_ID=local-identity
|
|
|
|
- AWS_SECRET_ACCESS_KEY=local-credential
|
2019-12-03 03:04:59 +01:00
|
|
|
working_dir: /srv/philomena
|
2019-12-03 19:36:50 +01:00
|
|
|
tty: true
|
2019-12-03 03:04:59 +01:00
|
|
|
volumes:
|
|
|
|
- .:/srv/philomena
|
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
- elasticsearch
|
|
|
|
- redis
|
|
|
|
|
|
|
|
postgres:
|
2024-03-04 18:08:35 +01:00
|
|
|
image: postgres:16.2-alpine
|
2020-05-04 14:19:42 +02:00
|
|
|
environment:
|
|
|
|
- POSTGRES_PASSWORD=postgres
|
2019-12-03 03:04:59 +01:00
|
|
|
volumes:
|
|
|
|
- postgres_data:/var/lib/postgresql/data
|
2019-12-07 06:49:20 +01:00
|
|
|
logging:
|
|
|
|
driver: "none"
|
2019-12-03 03:04:59 +01:00
|
|
|
|
|
|
|
elasticsearch:
|
2020-10-26 22:01:29 +01:00
|
|
|
image: elasticsearch:7.9.3
|
2019-12-03 03:04:59 +01:00
|
|
|
volumes:
|
2021-04-16 04:35:17 +02:00
|
|
|
- elastic_data:/usr/share/elasticsearch/data
|
2019-12-07 06:49:20 +01:00
|
|
|
logging:
|
|
|
|
driver: "none"
|
2020-05-04 14:19:42 +02:00
|
|
|
environment:
|
|
|
|
- discovery.type=single-node
|
2019-12-03 03:17:13 +01:00
|
|
|
ulimits:
|
|
|
|
nofile:
|
2021-01-21 20:46:23 +01:00
|
|
|
soft: 65536
|
|
|
|
hard: 65536
|
2019-12-03 03:04:59 +01:00
|
|
|
|
|
|
|
redis:
|
2024-03-04 18:08:35 +01:00
|
|
|
image: redis:7.2.4-alpine
|
2019-12-07 06:49:20 +01:00
|
|
|
logging:
|
|
|
|
driver: "none"
|
2019-12-03 03:04:59 +01:00
|
|
|
|
2022-02-06 19:27:01 +01:00
|
|
|
files:
|
2024-03-04 18:08:35 +01:00
|
|
|
image: andrewgaul/s3proxy:sha-ec12ae0
|
2022-02-10 02:33:10 +01:00
|
|
|
environment:
|
|
|
|
- JCLOUDS_FILESYSTEM_BASEDIR=/srv/philomena/priv/s3
|
2022-02-06 19:27:01 +01:00
|
|
|
volumes:
|
|
|
|
- .:/srv/philomena
|
|
|
|
|
2019-12-03 03:04:59 +01:00
|
|
|
web:
|
|
|
|
build:
|
|
|
|
context: .
|
2019-12-03 19:36:50 +01:00
|
|
|
dockerfile: ./docker/web/Dockerfile
|
2022-05-14 19:46:23 +02:00
|
|
|
args:
|
|
|
|
- APP_DIR=/srv/philomena
|
|
|
|
- S3_SCHEME=http
|
|
|
|
- S3_HOST=files
|
|
|
|
- S3_PORT=80
|
|
|
|
- S3_BUCKET=philomena
|
2019-12-03 03:04:59 +01:00
|
|
|
volumes:
|
|
|
|
- .:/srv/philomena
|
2022-05-14 19:46:23 +02:00
|
|
|
environment:
|
|
|
|
- AWS_ACCESS_KEY_ID=local-identity
|
|
|
|
- AWS_SECRET_ACCESS_KEY=local-credential
|
2019-12-07 06:49:20 +01:00
|
|
|
logging:
|
|
|
|
driver: "none"
|
2019-12-03 03:04:59 +01:00
|
|
|
depends_on:
|
|
|
|
- app
|
|
|
|
ports:
|
2019-12-19 23:39:34 +01:00
|
|
|
- '8080:80'
|