Skip to content

Commit

Permalink
feat(docker-compose.dev.yml): make dev workflow easier (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinMinkov authored Nov 21, 2023
1 parent d703f4d commit 0283b8f
Show file tree
Hide file tree
Showing 4 changed files with 12,865 additions and 15,415 deletions.
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

0 comments on commit 0283b8f

Please sign in to comment.