-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (53 loc) · 1.19 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
version: "3.8"
services:
react:
stdin_open: true
tty: true
container_name: graphic-blog-client
build:
context: .
dockerfile: ./client/Dockerfile.dev
ports:
- 3000:3000
volumes:
- ./client/src:/app/src:ro
my-database:
image: mysql:8.0.31
container_name: graphic-blog-db
volumes:
- mysql-volume:/var/lib/mysql
ports:
- 3306:3306
environment:
MYSQL_DATABASE: blog
MYSQL_ALLOW_EMPTY_PASSWORD: ok
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: dbuser
MYSQL_PASSWORD: dbuser
MYSQL_ROOT_HOST: "%"
server:
depends_on:
- my-database
- my-s3
stdin_open: true
tty: true
container_name: graphic-blog-server
build:
context: .
dockerfile: ./server/Dockerfile.dev
ports:
- 3001:3001
volumes:
- ./server/src:/app/src:ro
my-s3:
image: localstack/localstack
container_name: graphic-blog-s3
ports:
- "127.0.0.1:4566:4566" # LocalStack Gateway
environment:
- SERVICES=s3
- DOCKER_HOST=unix:///var/run/docker.sock
volumes:
- "./localstack-init.sh:/docker-entrypoint-initaws.d/init.sh"
volumes:
mysql-volume: