custom ports
This commit is contained in:
parent
bbd15d539f
commit
57bcbdcd18
2 changed files with 6 additions and 2 deletions
|
@ -22,8 +22,8 @@
|
||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
- name: Create docker-compose.yaml file
|
- name: Create docker-compose.yaml file
|
||||||
copy:
|
template:
|
||||||
src: files/docker-compose.yml
|
src: templates/docker-compose.yml.j2
|
||||||
dest: "{{ mastodon_composer_folder }}/docker-compose.yml"
|
dest: "{{ mastodon_composer_folder }}/docker-compose.yml"
|
||||||
|
|
||||||
- name: Ensure mastodon configuration is present
|
- name: Ensure mastodon configuration is present
|
||||||
|
|
|
@ -12,6 +12,8 @@ services:
|
||||||
- ./postgres14:/var/lib/postgresql/data
|
- ./postgres14:/var/lib/postgresql/data
|
||||||
environment:
|
environment:
|
||||||
- 'POSTGRES_HOST_AUTH_METHOD=trust'
|
- 'POSTGRES_HOST_AUTH_METHOD=trust'
|
||||||
|
ports:
|
||||||
|
- {{ mastodon_db_port }}:5432
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
restart: always
|
restart: always
|
||||||
|
@ -22,6 +24,8 @@ services:
|
||||||
test: ['CMD', 'redis-cli', 'ping']
|
test: ['CMD', 'redis-cli', 'ping']
|
||||||
volumes:
|
volumes:
|
||||||
- ./redis:/data
|
- ./redis:/data
|
||||||
|
ports:
|
||||||
|
- {{ redis_port }}:6379
|
||||||
|
|
||||||
# es:
|
# es:
|
||||||
# restart: always
|
# restart: always
|
Loading…
Reference in a new issue