Skip to content

Commit

Permalink
(fix) add shared network for connectivity
Browse files Browse the repository at this point in the history
  • Loading branch information
DudeCalledBro committed Jan 1, 2025
1 parent 409fdea commit 1ffdbb8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions roles/mysql/templates/docker-compose.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ services:
{%- endfor %}
ports:
- "{{ mysql_docker_host }}:{{ mysql_docker_port }}:3306"
networks:
- semaphore
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "{{ mysql_docker_path }}/data:/var/lib/mysql:rw"

networks:
semaphore:
name: semaphore-network
6 changes: 6 additions & 0 deletions roles/postgres/templates/docker-compose.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ services:
{%- endfor %}
ports:
- "{{ postgres_docker_host }}:{{ postgres_docker_port }}:5432"
networks:
- semaphore
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "{{ postgres_docker_path }}/data:/var/lib/postgresql/data:rw"

networks:
semaphore:
name: semaphore-network
6 changes: 6 additions & 0 deletions roles/semaphore/templates/docker-compose.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ services:
{%- endfor %}
ports:
- "{{ semaphore_docker_host }}:{{ semaphore_docker_port }}:3000"
networks:
- semaphore
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "{{ semaphore_docker_path }}/config:/etc/semaphore:rw"
- "{{ semaphore_docker_path }}/data:/var/lib/semaphore:rw"

networks:
semaphore:
name: semaphore-network

0 comments on commit 1ffdbb8

Please sign in to comment.