Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(docker-compose.dev.yml): make dev workflow easier #94

Merged
merged 3 commits into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,28 @@
version: '3.3'

services:
mina:
image: ${MINA}
container_name: mina
ports:
- '6060:6060'
- '8302:8302'
- '3085:3085'
restart: always
env_file:
- ./.env
volumes:
- '$HOME/keys:/root/keys:ro'
- '$HOME/.mina-config:/root/.mina-config'
command: >
daemon
--metrics-port 6060
--archive-address archive:3086
--insecure-rest-server
networks:
- archive
- mina

archive:
image: ${ARCHIVE}
container_name: archive
Expand Down Expand Up @@ -65,7 +87,6 @@ services:
command: npm run dev
volumes:
- .:/app
- /app/node_modules
networks:
- archive

Expand Down
40 changes: 20 additions & 20 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
version: "3.3"
version: '3.3'

services:
mina:
image: ${MINA}
container_name: mina
ports:
- "6060:6060"
- "8302:8302"
- "127.0.0.1:3085:3085"
- '6060:6060'
- '8302:8302'
- '127.0.0.1:3085:3085'
restart: always
env_file:
- ./.env
volumes:
- "$HOME/keys:/root/keys:ro"
- "$HOME/.mina-config:/root/.mina-config"
- '$HOME/keys:/root/keys:ro'
- '$HOME/.mina-config:/root/.mina-config'
command: >
daemon
--metrics-port 6060
Expand All @@ -36,12 +36,12 @@ services:
networks:
- archive
- mina

postgres:
image: ${POSTGRES}
container_name: postgres
ports:
- "5432:5432"
- '5432:5432'
env_file:
- ./.env
environment:
Expand All @@ -50,9 +50,9 @@ services:
POSTGRES_DB: ${PGDATABASE}
PGDATA: ${PGDATA}
volumes:
- "./data/${PG_DUMP}:/data/${PG_DUMP}"
- "./scripts/init_docker_compose.sh:/docker-entrypoint-initdb.d/init.sh"
- "./db:/var/lib/postgresql/data"
- './data/${PG_DUMP}:/data/${PG_DUMP}'
- './scripts/init_docker_compose.sh:/docker-entrypoint-initdb.d/init.sh'
- './db:/var/lib/postgresql/data'
command: postgres -N 1000
networks:
- archive
Expand All @@ -64,13 +64,13 @@ services:
- ./.env
restart: always
ports:
- "5775:5775/udp"
- "6831:6831/udp"
- "6832:6832/udp"
- "5778:5778"
- "9411:9411"
- "${JAEGER_FRONTEND}:16686"
- "${JAEGER_LOG_PORT}:14268"
- '5775:5775/udp'
- '6831:6831/udp'
- '6832:6832/udp'
- '5778:5778'
- '9411:9411'
- '${JAEGER_FRONTEND}:16686'
- '${JAEGER_LOG_PORT}:14268'
networks:
- archive

Expand All @@ -83,7 +83,7 @@ services:
- ./.env
restart: always
ports:
- "8080:8080"
- '8080:8080'
command: npm run start
volumes:
- /app/node_modules
Expand All @@ -97,4 +97,4 @@ networks:
archive:
driver: bridge
mina:
driver: bridge
driver: bridge
Loading
Loading