-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
67 lines (64 loc) · 1.37 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
63
64
65
66
67
version: '3.6'
services:
mysql:
platform: linux/arm64/v8
container_name: mysql-todo
image: "mysql:latest"
volumes:
- "./mysqldata:/var/lib/mysql/"
env_file:
- ./docker/.env
ports:
- "${DOCKER_MYSQL_PORT:-3307}:3306"
networks:
- todo_api_network
postgres:
platform: linux/amd64
container_name: postgres-todo
image: postgres:14.1-alpine
volumes:
- "./postgresdata:/var/lib/postgresql/data"
env_file:
- ./docker/.env
ports:
- "${DOCKER_POSTGRES_PORT:-5433}:5432"
networks:
- todo_api_network
redis:
platform: linux/amd64
container_name: redis-todo
image: "redis:6-alpine3.17"
ports:
- "${DOCKER_REDIS_PORT:-6379}:3306"
networks:
- todo_api_network
memcache:
platform: linux/amd64
container_name: memcache-todo
image: "memcached:alpine3.17"
ports:
- "${DOCKER_MEMCACHE_PORT:-11211}:11211"
networks:
- todo_api_network
app:
platform: linux/amd64
container_name: app-todo
build:
context: .
dockerfile: "./docker/go/Dockerfile"
env_file:
- .env
depends_on:
- mysql
- postgres
- redis
- memcache
restart: on-failure
volumes:
- .:/app
ports:
- "${DOCKER_APP_PORT:-3000}:3000"
networks:
- todo_api_network
networks:
todo_api_network: