blob: f0419b9e374b20c4e99732554812d58fb242d5e9 (
plain)
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
|
version: '3.9'
services:
postgres:
image: registry.cri.epita.fr/ing/assistants/public/registry/postgres:15.2-alpine
container_name: postgres
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: eplace
expose:
- 5432
volumes:
- postgres-data:/var/lib/postgresql/data
# Proper docker-compose would use named networks
# networks:
# - postgres-network
redis:
image: registry.cri.epita.fr/ing/assistants/public/registry/redis:7.0.9-alpine
container_name: redis
restart: always
expose:
- 6379
volumes:
- redis-data:/data
# Proper docker-compose would use named networks
# networks:
# - redis-network
eplace:
image: registry.cri.epita.fr/ing/assistants/public/registry/eplace:latest
container_name: eplace
restart: always
environment:
NODE_ENV: production
volumes:
- ./config:/usr/src/app/config
- type: 'bind'
source: './.env'
target: '/usr/src/app/.env'
ports:
- 3000:3000
- 3333:3333
# Proper docker-compose would use named networks
# networks:
# - postgres-network
# - redis-network
depends_on:
- postgres
- redis
volumes:
postgres-data:
redis-data:
# Proper docker-compose would use named networks
# networks:
# postgres-network:
# redis-network:
|