-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.production.serverside.yml
75 lines (72 loc) · 1.52 KB
/
docker-compose.production.serverside.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
68
69
70
71
72
73
74
75
version: '3'
volumes:
api_database: {}
redis_data: {}
services:
default_log_rotate: &default_log_rotate
image: busybox
logging:
options:
max-size: 5m
max-file: "5"
api:
<<: *default_log_rotate
image: youwatana.be/api_server
build:
context: ./api_server
env_file: .env
environment:
- RAILS_ENV=production
volumes:
- ./api_server:/usr/src/app
networks:
- default
ports:
- 13002:3000
api_sidekiq:
<<: *default_log_rotate
image: youwatana.be/api_server
env_file: .env
environment:
- RAILS_ENV=production
volumes:
- ./api_server:/usr/src/app
- /dev/null:/usr/src/app/log/development.log
command: bundle exec sidekiq
networks:
- default
database:
<<: *default_log_rotate
image: mysql:5.7
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_general_ci
environment:
MYSQL_ROOT_PASSWORD: root
volumes:
- api_database:/var/lib/mysql
ports:
- 13306:3306
networks:
- default
redis:
<<: *default_log_rotate
image: redis
command: redis-server --appendonly yes
volumes:
- redis_data:/data
networks:
- default
nginx:
<<: *default_log_rotate
image: nginx:stable
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
environment:
- VIRTUAL_HOST=api.youwatana.be
ports:
- 13000:80
networks:
- default
networks:
default: {}
shared:
external: true