mirror of
https://example.com
synced 2024-11-23 13:16:42 +09:00
5cab3db3b9
links is a deprecated docker feature which doesn't work in podman so i changed it so it uses depends_on instead. you have to change your configuration to point to the name of the docker container like db as its hostname.
50 lines
946 B
YAML
50 lines
946 B
YAML
version: "3"
|
|
|
|
services:
|
|
web:
|
|
image: docker.io/thatonecalculator/calckey
|
|
build: .
|
|
restart: always
|
|
depends_on:
|
|
- db
|
|
- redis
|
|
# - es
|
|
ports:
|
|
- "3000:3000"
|
|
networks:
|
|
- network
|
|
volumes:
|
|
- ./files:/calckey/files
|
|
- ./.config:/calckey/.config:ro
|
|
|
|
redis:
|
|
restart: always
|
|
image: docker.io/redis:4.0-alpine
|
|
networks:
|
|
- network
|
|
volumes:
|
|
- ./redis:/data
|
|
|
|
db:
|
|
restart: always
|
|
image: docker.io/postgres:12.2-alpine
|
|
networks:
|
|
- network
|
|
env_file:
|
|
- .config/docker.env
|
|
volumes:
|
|
- ./db:/var/lib/postgresql/data
|
|
|
|
# es:
|
|
# restart: always
|
|
# image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.4.2
|
|
# environment:
|
|
# - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
|
|
# - "TAKE_FILE_OWNERSHIP=111"
|
|
# networks:
|
|
# - network
|
|
# volumes:
|
|
# - ./elasticsearch:/usr/share/elasticsearch/data
|
|
|
|
networks:
|
|
network:
|