forked from swm-standard/phote-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
51 lines (47 loc) · 1.21 KB
/
docker-compose-dev.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
services:
phote-server:
depends_on:
- phote-mysql
- phote-redis
image: adorableco/phote:latest
restart: unless-stopped
container_name: phote-server
env_file:
- .env
environment:
- TZ=Asia/Seoul
ports:
- "8080:8080"
networks:
- phote-network
phote-redis:
image: redis:6.2.6-alpine
restart: unless-stopped
container_name: phote-redis
ports:
- "6379:6379"
volumes:
- /var/lib/docker/volumes/phote-redis-volume/_data:/data
networks:
- phote-network
phote-mysql:
image: mysql:latest
restart: unless-stopped
container_name: phote-mysql
environment:
MYSQL_DATABASE: 'phote-database'
MYSQL_USER: 'admin'
MYSQL_PASSWORD: 'password'
MYSQL_ROOT_PASSWORD: 'password'
ports:
- "3306:3306"
volumes:
- phote-mysql-volume:/var/lib/mysql
networks:
- phote-network
volumes:
phote-mysql-volume:
phote-redis-volume:
networks:
phote-network:
external: true