-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
62 lines (56 loc) · 1.54 KB
/
docker-compose.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
version: '2.3'
networks:
private:
driver: bridge
services:
app:
build:
context: .
dockerfile: ./deployment/docker/Dockerfile
env_file:
- .env.docker
ports:
- "8080:8080"
networks:
- private
mariadb:
image: library/mariadb:10.5.10
container_name: mariadb
environment:
- MYSQL_ROOT_PASSWORD=secret # Only for local development, define as secret in ci-pipeline
- MYSQL_DATABASE=go_template # Only for local development, define as secret in ci-pipeline
ports:
- 3306:3306
networks:
- private
volumes:
- mariadb_data:/var/lib/mysql
- ./deployment/docker/mariadb/:/docker-entrypoint-initdb.d/
entrypoint:
sh -c "/usr/local/bin/docker-entrypoint.sh --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci"
postgres:
image: postgres:14
container_name: postgres
environment:
- POSTGRES_USER=root # Only for local development, define as secret in ci-pipeline
- POSTGRES_PASSWORD=secret # Only for local development, define as secret in ci-pipeline
- POSTGRES_MULTIPLE_DATABASES=go_template,go_template_test
ports:
- 5432:5432
networks:
- private
volumes:
- ./deployment/docker/postgres/:/docker-entrypoint-initdb.d/
rabbitmq:
image: heidiks/rabbitmq-delayed-message-exchange:3.7.23-management
ports:
- 5672:5672
- 15672:15672
networks:
- private
volumes:
- rabbitmq_data:/data
volumes:
rabbitmq_data:
mariadb_data:
postgresdb_data: