Skip to content

Commit

Permalink
Add docker-compose for fast build dev env, include mysql, postgre, go…
Browse files Browse the repository at this point in the history
…admin, and portainer container to maintain all docker env
  • Loading branch information
Josing committed Jan 14, 2021
1 parent bfaa879 commit 624a5fb
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
version: "3.3"
services:
mysql:
image: mysql:5.6
container_name: mysql
ports:
- "3306:3306"
volumes:
- mysql:/data
networks:
- goadmin
environment:
- MYSQL_ROOT_PASSWORD=goadmin
postgres:
image: postgres:latest
container_name: postgres
ports:
- "5432:5432"
volumes:
- postgres:/data
networks:
- goadmin
environment:
- POSTGRES_PASSWORD=goadmin
goadmin:
image: josingcjx/goadmin:1.1
tty: true
container_name: goadmin
volumes:
- .:/home/goadmin
networks:
- goadmin
command:
- /bin/bash
portainer:
image: portainer/portainer:latest
container_name: portainer
restart: always
ports:
- "9000:9000"
networks:
- goadmin
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer:/data
networks:
goadmin: {}
volumes:
portainer: {}
postgres: {}
mysql: {}

0 comments on commit 624a5fb

Please sign in to comment.