-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (44 loc) · 1.16 KB
/
docker-compose.yml
File metadata and controls
49 lines (44 loc) · 1.16 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
version: "3.7"
services:
xray-daemon:
image: xray-daemon
container_name: xray-daemon
ports:
- 2000:2000/udp
- 2000:2000/tcp
environment:
- AWS_REGION=ap-southeast-1
volumes:
- ~/.aws/:/root/.aws/:ro
command: -l info -o
app:
image: golang:1.15.6
container_name: app
depends_on:
- mysql
ports:
- 9001:9001
environment:
# - XRAY_APP_NAME=debug # prod required : cloud-xray-test
- XRAY_DAEMON_ADDR=xray-daemon:2000 # prod required : localhost:2000
- MYSQL_ADDR=mysql # prod required : localhost
- SQS_QUEUE_URL=http://sqs:9324/queue/default # prod required : dependency with cfn.yml
volumes:
- ./app:/home/app
working_dir: /home/app
tty: true
command: go run main.go
mysql:
image: mariadb:10.5.3
container_name: mysql
ports:
- 3306:3306/tcp
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=myPrivateDatabase
sqs:
image: roribio16/alpine-sqs
container_name: sqs
ports:
- 9324:9324
- 9325:9325 # portal : http://localhost:9325