-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
71 lines (62 loc) · 1.28 KB
/
docker-compose-dev.yml
File metadata and controls
71 lines (62 loc) · 1.28 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
#version: '3.1'
#네트웍 브릿지 추가 함
services:
mariadb:
container_name: devops-mariadb
image: mariadb:10
restart: always
ports:
- 3306:3306
volumes:
- shared-data:/var/lib/mysql:rw
user: mysql
environment:
MARIADB_DATABASE: koreatech_db
MARIADB_USER: koreatech
MARIADB_PASSWORD: 1004koreatech
MARIADB_ROOT_PASSWORD: 1004koreatech
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_general_ci
networks:
- my_bridge_network
redis:
image: redis:latest
ports:
- 6379:6379
container_name: devops-redis
networks:
- my_bridge_network
nginx:
image: nginx:latest
ports:
- 80:80
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
depends_on:
- redis
- mariadb
- app1
- app2
networks:
- my_bridge_network
app1:
image: masungil/devops:latest
container_name: devops_app1
networks:
- my_bridge_network
app2:
image: masungil/devops:latest
container_name: devops_app2
networks:
- my_bridge_network
networks:
my_bridge_network:
driver: bridge
volumes:
shared-data:
driver: local
driver_opts:
type: none
o: bind
device: ./db_data