-
Notifications
You must be signed in to change notification settings - Fork 7
/
ansible.yaml
54 lines (52 loc) · 1.59 KB
/
ansible.yaml
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
---
- hosts: q_cloud
remote_user: root
tasks:
- name: deploy gsc1...
docker_container:
name: gsc1
image: registry.cn-beijing.aliyuncs.com/roselle-1/gogsc:{{image_tag}}
state: started
pull: true
restart: true
restart_policy: always
env:
wxAppId: "{{wxAppId}}"
wxAppSecret: "{{wxAppSecret}}"
qqAppId: "{{qqAppId}}"
qqAppSecret: "{{qqAppSecret}}"
listenAddr: "{{listenAddr}}"
mysqlDSN: "{{mysqlDSN}}"
md5Secret: "{{md5Secret}}"
alipayAppId: "{{alipayAppId}}"
alipayRsa: "{{alipayRsa}}"
audioSecret: "{{audioSecret}}"
audioDomain: "{{audioDomain}}"
published_ports:
- "8081:8080"
volumes:
- /etc/localtime:/etc/localtime:ro
- name: deploy gsc2...
docker_container:
name: gsc2
image: registry.cn-beijing.aliyuncs.com/roselle-1/gogsc:{{image_tag}}
state: started
pull: true
restart: true
restart_policy: always
env:
wxAppId: "{{wxAppId}}"
wxAppSecret: "{{wxAppSecret}}"
qqAppId: "{{qqAppId}}"
qqAppSecret: "{{qqAppSecret}}"
listenAddr: "{{listenAddr}}"
mysqlDSN: "{{mysqlDSN}}"
md5Secret: "{{md5Secret}}"
alipayAppId: "{{alipayAppId}}"
alipayRsa: "{{alipayRsa}}"
audioSecret: "{{audioSecret}}"
audioDomain: "{{audioDomain}}"
published_ports:
- "8082:8080"
volumes:
- /etc/localtime:/etc/localtime:ro