forgeplus/docker-compose.yml

39 lines
757 B
YAML
Raw Normal View History

2020-03-09 00:40:16 +08:00
version: '3'
services:
mysql:
image: mysql:5.7.17
command: --sql-mode=""
restart: always
volumes:
- ./mysql_data/:/var/lib/mysql
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: 123456789
MYSQL_DATABASE: educoder
redis:
2022-09-02 11:15:35 +08:00
image: redis:6.2.5
2020-03-09 00:40:16 +08:00
container_name: redis
restart: always
ports:
- "6379:6379"
volumes:
- ./redis_data:/data
web:
2022-09-02 11:15:35 +08:00
image: gitlink-ubuntu18.04:latest
build:
context: ../
dockerfile: Dockerfile
# command: bash -c "rm -f tmp/pids/server.pid && rails s -p 4000 -b '0.0.0.0'"
2020-03-09 00:40:16 +08:00
stdin_open: true
tty: true
volumes:
2022-09-02 11:15:35 +08:00
- .:/home/app/gitlink
2020-03-09 00:40:16 +08:00
ports:
- "4000:4000"
depends_on:
- mysql
2022-09-02 11:15:35 +08:00
- redis