-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.production.yml
68 lines (63 loc) 路 1.9 KB
/
docker-compose.production.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
59
60
61
62
63
64
65
66
67
68
version: "3.7"
services:
# https://medium.com/@chrischuck35/how-to-create-a-mysql-instance-with-docker-compose-1598f3cc1bee
mysql-server:
container_name: mysql-server
image: "mysql:latest"
restart: always
environment:
MYSQL_DATABASE: "jm_spring_boot_template"
# So you don't have to use root, but you can if you like
MYSQL_USER: "root"
# You can use whatever password you like
MYSQL_PASSWORD: "jm@mysql"
# Password for root access
MYSQL_ROOT_PASSWORD: "jm@mysql"
ports:
- 3306:3306
networks:
jm_spring_boot_and_vue_template_network:
ipv4_address: 172.16.238.10
redis-server:
container_name: redis-server
image: "redis:latest"
restart: always
command: "redis-server /usr/local/etc/redis/redis.conf"
volumes:
- /usr/local/docker-file-mapping/redis-5.0.6/data:/data
- /usr/local/docker-file-mapping/redis-5.0.6/redis.conf:/usr/local/etc/redis/redis.conf
ports:
- 6379:6379
networks:
jm_spring_boot_and_vue_template_network:
ipv4_address: 172.16.238.11
atmoz-sftp-server:
container_name: atmoz-sftp-server
image: "atmoz/sftp:latest"
restart: always
command: "johnny:atmoz@sftp:::upload"
volumes:
- /usr/local/docker-file-mapping/atmoz-sftp:/home/johnny/upload
ports:
- 23:23
networks:
jm_spring_boot_and_vue_template_network:
ipv4_address: 172.16.238.12
jm-spring-boot-template:
container_name: jm-spring-boot-template
image: "ijohnnymiller/jm-spring-boot-template-prod:${TAG}"
depends_on:
- mysql-server
- redis-server
- atmoz-sftp-server
ports:
- 8080:8080
networks:
jm_spring_boot_and_vue_template_network:
ipv4_address: 172.16.238.13
networks:
jm_spring_boot_and_vue_template_network:
ipam:
driver: default
config:
- subnet: "172.16.238.0/24"